MSFN Forum: Unattended Woes - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Woes RunOnceEX can't find the apps Rate Topic: -----

#1 User is offline   Solar257 

  • Group: Members
  • Posts: 5
  • Joined: 26-July 05

Posted 26 July 2005 - 06:25 PM

Ok I've been reading the webpages over on the normal site concerning methods for creating an unattended install and I'm glad to say everything goes smoothly until I reach the section where RunOnce is executed on the first startup. The task window comes up fine displaying all the tasks, except every task that I have listed can't be found by the virtual machine. I've tried placing the files on the hard drive as well, via the '$OEM$\$1\install\' route on the image. When I tried this method with the '%systemdrive%\apps' header on each of the lines in RunOnce, the files were copied to C:\apps but windows still didn't see them. I've also tried to get them to read from the iso image. As you can see currently I'm trying from the image, with no luck. What's wrong? is this a problem with the virtual machine program (VMware btw) or is there something up with my code? Attached is a picture of the error. Much thanks to any help rendered! :thumbup

cmdlines.txt
[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"


RunOnceEx.cmd
cmdow @ /HID
@echo off
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\apps\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /f

REG ADD %KEY%\010 /VE /D "Microsoft FrontPage 2003" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\apps\FrontPage2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /f

REG ADD %KEY%\015 /VE /D "Norton SystemWorks 2004" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\apps\NSW2004\NSWSETUP.exe /qb /Reboot=Suppress" /f

REG ADD %KEY%\020 /VE /D "Real Player Alternative" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\apps\realalt141.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\025 /VE /D "K-Lite Codec Pack 2.27" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\apps\K-LiteCodecPack\klcodec227f.exe /verysilent /loadinf=".\silent.inf"" /f

REG ADD %KEY%\030 /VE /D "Daemon Virtual Drive" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\apps\Daemon\daemon.msi /qb /Reboot=Suppress" /f
REG ADD %KEY%\030 /V 2 /D "taskkill /F /IM daemon.exe" /f

REG ADD %KEY%\035 /VE /D "Mozilla Firefox 1.0.6" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%\apps\Firefox1.0.6Silent.exe" /f

REG ADD %KEY%\040 /VE /D "Adobe Photoshop CS" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\apps\PhotoshopCS\setup.exe -s -f2"%systemdrive%\ps.log"" /f

:: REG ADD %KEY%\040 /VE /D "MSN Messenger 6.1" /f
:: REG ADD %KEY%\040 /V 1 /D "%CDROM%\install\MSN_Messenger_6.1.0202.msi /qn" /f

:: REG ADD %KEY%\045 /VE /D "Nero Burning ROM 5.5" /f
:: REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\nero\register.reg" /f
:: REG ADD %KEY%\045 /V 2 /D "%CDROM%\install\Nero\Nero551054.exe /silent /noreboot" /f

:: REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
:: REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %CDROM%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\$OEM$\cleanup.cmd" /f

EXIT


Cleanup.cmd
cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

:: RD /S /Q %systemdrive%\drivers\
:: RD /S /Q %systemdrive%\D\
:: RD /S /Q %systemdrive%\apps\

EXIT


winnt.sif
;SetupMgrTag
[Data]
	MsDosInitiated = "No"
    AutoPartition=0
    UnattendedInstall="Yes"
    AutomaticUpdates=yes

[Unattended]
	OemPreinstall = "Yes"
    FileSystem=*
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    DUDisable = No
    Hibernation = Yes
    AutoActivate = Yes
    Repartition = No
    TargetPath=\WINDOWS
    
    UnattendSwitch = Yes
    OEMPnPDriversPath = "drivers\RAID\PIDE;drivers\RAID\SATA;drivers\RAID\IDE;drivers\USB2;drivers\LAN\Marvel;drivers\Audio"
    WaitForReboot = No

[GuiUnattended]
    AdminPassword=xxx
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    TimeZone=35
    OemSkipWelcome=1

[UserData]
    ProductKey=xxx
    FullName=xxx
    OrgName=xxx
    ComputerName=Seawolf

[Display]
    BitsPerPel=32
    Xresolution=1280
    YResolution=1024
    Vrefresh=75
    AutoComfirm=1

[Identification]
    JoinWorkgroup=

[Networking]
    InstallDefaultComponents=No

[NetAdapters]
    Adapter1=params.Adapter1
    Adapter2=params.Adapter1
    Adapter3=params.Adapter1

[params.Adapter1]
    INFID=*

[NetClients]
    MS_MSClient=params.MS_MSClient

[NetServices]
    MS_SERVER=params.MS_SERVER

[NetProtocols]
    MS_AppleTalk=params.MS_AppleTalk
    MS_TCPIP=params.MS_TCPIP
    MS_NWIPX=params.MS_NWIPX

[params.MS_TCPIP]
    DNS=Yes
    UseDomainNameDevolution=No
    EnableLMHosts=Yes
    AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
    SpecificTo=Adapter1
    DHCP=Yes
    WINS=No
    NetBIOSOptions=0

[params.MS_NWIPX]
    VirtualNetworkNumber=00000000
    AdapterSections=params.MS_NWIPX.Adapter1

[params.MS_NWIPX.Adapter1]
    SpecificTo=Adapter1
    PktType=0xFF
    NetworkNumber=00000000

[URL]
    Home_Page=http://dsc.discovery.com/news/news.html

[WindowsFirewall]
    Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
    Mode = 0

[GUIRunOnce]
	command9 = "%SystemDrive%\D\BTS_DPs_finish.cmd"

Attached File(s)


This post has been edited by Solar257: 27 July 2005 - 12:04 PM



#2 User is offline   wiredbits 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 25-July 05

Posted 26 July 2005 - 06:48 PM

Hi,
I am just learning this but first thing i noticed with your CMD file was %CDROM% and was wondering if it should be %systemdrive% instead?

Your files were copied over to the souce drive?
Hope it works out

Jim

#3 User is offline   ender341 

  • Member
  • PipPip
  • Group: Members
  • Posts: 158
  • Joined: 18-January 05

Posted 26 July 2005 - 06:55 PM

that may be the problem, but i am guessing that you are installing from the CD?

i use "WIN51IP.SP2" when looking for the file, for some reason the CD.txt never worked for me (and also make sure that you remembered to create the CD.txt file as that may be the problem.

#4 User is offline   Solar257 

  • Group: Members
  • Posts: 5
  • Joined: 26-July 05

Posted 27 July 2005 - 10:03 AM

Quote

I am just learning this but first thing i noticed with your CMD file was %CDROM% and was wondering if it should be %systemdrive% instead?
I tried using the system drive command but it didn't work, so now I tried to get it to read from the CD and I've had no luck as well

Quote

i use "WIN51IP.SP2" when looking for the file, for some reason the CD.txt never worked for me (and also make sure that you remembered to create the CD.txt file as that may be the problem.

Forgive my ignorance but what is the CD.txt file and where do I place it?

This post has been edited by Solar257: 27 July 2005 - 10:21 AM


#5 User is offline   DL. 

  • Tweaker or whatever I happen to be focused on at the moment..
  • PipPipPip
  • Group: Members
  • Posts: 489
  • Joined: 05-March 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 July 2005 - 11:22 AM

I notised you have named one of your files commands.txt, it is supposed to be named cmdlines.txt. But it seems to work anyway because it reads your RunOnceEX?

The CD.txt file is not needed, use some other file already present on the Windows cd.

The line:
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

is used for finding out which drive letter the cd has by checking if a specific file is present. Try replacing \CD.txt with for example \I386\PRODSPEC.INI.

#6 User is offline   Solar257 

  • Group: Members
  • Posts: 5
  • Joined: 26-July 05

Posted 27 July 2005 - 12:03 PM

my mistake in typing the file in my post. The file on my unatteded cd is already named cmdlines.txt, just a typo in my post which I'll fix right now...

Currently I've edited RunOnce so all the files point to "C:\install\apps" hopefuly that will work, if it does I'll know I have one wway of getting this to work. I'll definitely edit my CD line so I can test that next.

This post has been edited by Solar257: 27 July 2005 - 12:13 PM


#7 User is offline   Solar257 

  • Group: Members
  • Posts: 5
  • Joined: 26-July 05

Posted 27 July 2005 - 08:28 PM

figured it out by running it off the CD, thanks D.L. that file switch made the difference! Now it's on to tweaking the switches

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy