Solar257 Posted July 27, 2005 Share Posted July 27, 2005 (edited) 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! cmdlines.txt[COMMANDS]"useraccounts.cmd""RunOnceEx.cmd"RunOnceEx.cmdcmdow @ /HID@echo offFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Microsoft Office 2003" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\apps\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /fREG ADD %KEY%\010 /VE /D "Microsoft FrontPage 2003" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\apps\FrontPage2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /fREG ADD %KEY%\015 /VE /D "Norton SystemWorks 2004" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\apps\NSW2004\NSWSETUP.exe /qb /Reboot=Suppress" /fREG ADD %KEY%\020 /VE /D "Real Player Alternative" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\apps\realalt141.exe /VERYSILENT /SP-" /fREG ADD %KEY%\025 /VE /D "K-Lite Codec Pack 2.27" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\apps\K-LiteCodecPack\klcodec227f.exe /verysilent /loadinf=".\silent.inf"" /fREG ADD %KEY%\030 /VE /D "Daemon Virtual Drive" /fREG ADD %KEY%\030 /V 1 /D "%CDROM%\apps\Daemon\daemon.msi /qb /Reboot=Suppress" /fREG ADD %KEY%\030 /V 2 /D "taskkill /F /IM daemon.exe" /fREG ADD %KEY%\035 /VE /D "Mozilla Firefox 1.0.6" /fREG ADD %KEY%\035 /V 1 /D "%CDROM%\apps\Firefox1.0.6Silent.exe" /fREG ADD %KEY%\040 /VE /D "Adobe Photoshop CS" /fREG 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" /fREG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\045 /V 1 /D "%CDROM%\$OEM$\cleanup.cmd" /fEXITCleanup.cmdcmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteDEL "%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\EXITwinnt.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" Edited July 27, 2005 by Solar257 Link to comment Share on other sites More sharing options...
wiredbits Posted July 27, 2005 Share Posted July 27, 2005 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 Link to comment Share on other sites More sharing options...
ender341 Posted July 27, 2005 Share Posted July 27, 2005 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. Link to comment Share on other sites More sharing options...
Solar257 Posted July 27, 2005 Author Share Posted July 27, 2005 (edited) 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 welli 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? Edited July 27, 2005 by Solar257 Link to comment Share on other sites More sharing options...
DL. Posted July 27, 2005 Share Posted July 27, 2005 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. Link to comment Share on other sites More sharing options...
Solar257 Posted July 27, 2005 Author Share Posted July 27, 2005 (edited) 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. Edited July 27, 2005 by Solar257 Link to comment Share on other sites More sharing options...
Solar257 Posted July 28, 2005 Author Share Posted July 28, 2005 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now