amp_man Posted February 19, 2005 Posted February 19, 2005 I can't figure this out. I've just converted my unattended CD from start.cmd to runonceex.cmd, but for some reason, either the runonceex.cmd never runs, or else it closes itself right from the beginning (or else something else is wrong). Can anyone help me with this? I'm also somewhat lazy, so my runonceex also contains some of the commands that I should have put in a seperate batch, and they get executed before adding reg keys, could that be the problem? And finally, I used the runonceex generator program, and then modified it from there to add a couple more programs.winnt.sif in :\i386\[Data] MsDosInitiated = 0 UnattendedInstall = Yes[Unattended] UnattendMode = FullUnattended UnattendSwitch = Yes FileSystem = ConvertNTFS Repartition = Yes WaitForReboot = No NoWaitAfterTextMode = 1 NoWaitAfterGUIMode = 1 OemPreinstall = Yes OemSkipEula = Yes TargetPath = "Windows" DriverSigningPolicy = Ignore NonDriverSigningPolicy = Ignore Hibernation = No[SystemFileProtection] SFCQuota = 0[Display] Xresolution = 1024 Yresolution = 768 BitsPerPel = 32 Vrefresh = 75[GuiUnattended] AutoLogon = Yes AdminPassword = removed TimeZone = 35 OEMSkipRegional = 1 OemSkipWelcome = 1[UserData] ProductKey = "mwahahaha" ComputerName = "removed" FullName = "removed" OrgName = "Somewhere..."[RegionalSettings] Language = 0409[Identification] DomainAdmin = Administrator DomainAdminPassword = "removed" JoinDomain = "removed"cmdlines.txt in :\$OEM$\ cmdow @ /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:\win51ip.SP2 SET CDROM=%%i:SET PP=%cdrom%\rem This will correct the video resolution, if not already set to 1024*768*32, 75Hz1365VidChng.exe 1024x768x32@75 -qrem This will map the networked drivesnet use n: \\server\apps /persistent: yesnet use o: \\server\net /persistent: yesnet use u: \\server\logon /persistent: yesrem This section enables the "Quick Lauch" toolbarreg load HKU\TempUser "C:\Documents and Settings\Default User\ntuser.dat"reg add HKU\Tempuser\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop /V TaskbarWinXP /t REG_BINARY /d 0c000000080000000200000000000000b0e22bd86457d011a96e00c04fd705a222001c000a0100001a000000010000000000000000000000000000004c0000000114020000000000c0000000000000468300000010000000a0b0485e898dbd0100d89ee42a8dbd010045fe5e898dbd01000000000000000001000000000000000000000000000000130114001f0fe04fd020ea3a6910a2d808002b30309d190023443a5c0000000000000000000000000000000000cd971500310000000000af245cb9108057696e6e7400002000310000000000af24a3b9100050726f66696c65730050524f46494c4553001900310000000000c1240892100069653530302e30303000002800310000000000c124089210004170706c69636174696f6e2044617461004150504c49437e31002100310000000000c5229d9110004d6963726f736f6674004d4943524f537e31002900310000000000d32232a61000496e7465726e6574204578706c6f72657200494e5445524e7e31002400310000000000db2276ba1000517569636b204c61756e636800515549434b4c7e310000008d0000001c000000010000001c000000360000000df0adba8c0000001a00000003000000e7182d231000000049453530305f58314300433a5c57494e4e545c50726f66696c65735c49453530302e3030305c4170706c69636174696f6e20446174615c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e6368000010000000050000a01a000000a3000000000000000800000002000000cc00000001000000030000004a0000000100000040003200e6010000c424159f20004c61756e636820496e7465726e6574204578706c6f7265722042726f777365722e6c6e6b004c41554e43487e322e4c4e4b00000040000000020000003600320048020000c424159f20004c61756e6368204f75746c6f6f6b20457870726573732e6c6e6b004c41554e43487e312e4c4e4b00000036000000000000002c00320051000000ec224639200053686f77204465736b746f702e7363660053484f5744457e312e53434600000052000000e00000000000000016000000000000000000000016000000000000000100000001000000aa4f2868486ad0118c7800c04fd918b437020000e000000000000000160000000000000000000000160000000000000001000000 /freg unload HKU\TempUser />rem This section adds software to be installed at the next boot, and then rebootsSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing programs..." /fREG ADD %KEY%\000 /VE /D "HP LaserJet 5" /fREG ADD %KEY%\000 /V 1 /D "%cdrom%\Setup\hplj5.cmd" /fREG ADD %KEY%\005 /VE /D "Mozilla Firefox 1.0" /fREG ADD %KEY%\005 /V 1 /D "%cdrom%\Setup\Apps\Firefox.exe" /fREG ADD %KEY%\010 /VE /D "VCE General Hospital" /fREG ADD %KEY%\010 /V 1 /D "%cdrom%\Setup\Apps\VCE_GH.exe" /fREG ADD %KEY%\015 /VE /D "VCE Medical-Surgical" /fREG ADD %KEY%\015 /V 1 /D "%cdrom%\Setup\Apps\VCE_MSTI.exe" /fREG ADD %KEY%\020 /VE /D "MS Office 2003 (Word, Excel, and PowerPoint)" /fREG ADD %KEY%\020 /V 1 /D "%cdrom%\Setup\Apps\Office.exe" /fREG ADD %KEY%\025 /VE /D "MS Frontpage 2003" /fREG ADD %KEY%\025 /V 1 /D "%cdrom%\Setup\Apps\Frontpage.exe" /fREG ADD %KEY%\026 /VE /D "Ad-Aware Pro" /fREG ADD %KEY%\026 /V 1 /D "%cdrom%\%cdrom%\Setup\Apps\Aawaawsepro.exe /S" /fREG ADD %KEY%\026 /V 2 /D "taskkill /IM Adaware.exe /F" /fREG ADD %KEY%\026 /V 3 /D "taskkill /IM hh.exe /F" /fREG ADD %KEY%\026 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /fREG ADD %KEY%\030 /VE /D "Spybot S&D" /fREG ADD %KEY%\030 /V 1 /D "%cdrom%\Setup\Apps\spybot\spybotsd13.exe /silent" /fREG ADD %KEY%\035 /VE /D "SpyBot S&D Updates" /fREG ADD %KEY%\035 /V 1 /D "%cdrom%\Setup\Apps\spybot\spyupd.exe" /fREG ADD %KEY%\040 /VE /D "AOL Instant Messenger" /fREG ADD %KEY%\040 /V 1 /D "%cdrom%\Setup\Apps\AIMInstall.exe" /fREG ADD %KEY%\045 /VE /D "McAfee AntiVirus 7" /fREG ADD %KEY%\045 /V 1 /D "%cdrom%\Setup\Apps\McAfee\McAfee.exe" /fREG ADD %KEY%\050 /VE /D "McAfee Updates (12/29/04)" /fREG ADD %KEY%\050 /V 1 /D "%cdrom%\Setup\Apps\McAfee\sdat4417.exe /silent" /fREG ADD %KEY%\055 /VE /D "FirstClass 8.0 SP1" /fREG ADD %KEY%\055 /V 1 /D "%cdrom%\Setup\Apps\FirstClass.exe" /fREG ADD %KEY%\060 /VE /D "QuickTime Alternative 1.39" /fREG ADD %KEY%\060 /V 1 /D "%cdrom%\Setup\Apps\quicktimealt139.exe /verysilent /sp-" /fREG ADD %KEY%\065 /VE /D "Real Alternative 1.29" /fREG ADD %KEY%\065 /V 1 /D "%cdrom%\Setup\Apps\realalt129.exe /verysilent /sp-" /fREG ADD %KEY%\070 /VE /D "WinRAR 3.42" /fREG ADD %KEY%\070 /V 1 /D "%cdrom%\Setup\Apps\wrar342.exe /s" /fREG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /fREG ADD %KEY%\000 /V 1 /D "%cdrom%\Setup\Apps\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""" /fREG ADD %KEY%\080 /VE /D "Java Runtime 5.0.1" /fREG ADD %KEY%\080 /V 1 /D "%cdrom%\Setup\Apps\jre501.exe" /fREG ADD %KEY%\085 /VE /D "Macromedia Shockwave/Flash Player 10.0" /fREG ADD %KEY%\085 /V 1 /D "%cdrom%\Setup\Apps\mm_fl_sw_installer.exe /s" /fREG ADD %KEY%\090 /VE /D "Apply Registry Tweaks" /fREG ADD %KEY%\090 /V 1 /D "REGEDIT /S %cdrom%\Setup\RegTweaks.reg" /fREG ADD %KEY%\095 /VE /D "Reboot the computer to finish installation"RED ADD %KEY%\095 /V 1 /D "shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."EXIT
^_^ Posted February 19, 2005 Posted February 19, 2005 Personally, I'm a batch file manhaven't figured out the runonceex.cmd thingy yetI guess it makes sense my question is, does cmdlines.txt automatically know the runonceex.cmd is in the $OEM$ or does it need a path to know that?and is $OEM$ the correct place to put it on the cd?
Astalavista Posted February 19, 2005 Posted February 19, 2005 your winnt.sif looks goodthis is what i use for my runonceEX.cmdI dont recognize this code that you used. SET PP=%cdrom%\FOR %%d 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 %%d\win51 SET CDROM=%%dcmdow @ /HID@ECHO OFFSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /V 1 /D "%cdrom%\Software\WPI\WPI.cmd" /fEXITI also suggest that you remove your regtweak from your RunonceEX.cmdInstead make a RegistryTweaks.reg fileand from your CMDlines.txt you add this code[COMMANDS]"REGEDIT /S tweaks.reg""RunonceEX.cmd"I also suggest that you extend the time of your shut down. Once problemthat you MIGHT encounter is that if your have a slower or older pcyour themes might not hv time to be properly applied.REG ADD %KEY%\095 /VE /D "Reboot the computer to finish installation"RED ADD %KEY%\095 /V 1 /D "shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."try 2 mins instead. I hv a new P4 3.4 and I hv mine at 3 mins.good luck on your progress. will be here to help when u move to wpi
amardeepsingh Posted February 19, 2005 Posted February 19, 2005 @astalavistaopen ur eyes and check out the code abovehe has already added [unattended]oemPreinstall=yes
Astalavista Posted February 19, 2005 Posted February 19, 2005 I think you should be the one to open his eyes. And stop spamming MSFN board with all your post. I did not see the code bec. it was hidden by the code box.I corrected myself as soon as i saw it.
keytotime Posted February 19, 2005 Posted February 19, 2005 Try this works fine for me. Add all other stuff to another .cmd .cmdow @ /HID@Echo OffFOR %%d IN (c: 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 %%d\WIN51 SET CDROM=%%dSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing programs..." /fREG ADD %KEY%\000 /VE /D "HP LaserJet 5" /fREG ADD %KEY%\000 /V 1 /D "%cdrom%\Setup\hplj5.cmd" /fREG ADD %KEY%\005 /VE /D "Mozilla Firefox 1.0" /fREG ADD %KEY%\005 /V 1 /D "%cdrom%\Setup\Apps\Firefox.exe" /fREG ADD %KEY%\010 /VE /D "VCE General Hospital" /fREG ADD %KEY%\010 /V 1 /D "%cdrom%\Setup\Apps\VCE_GH.exe" /fREG ADD %KEY%\015 /VE /D "VCE Medical-Surgical" /fREG ADD %KEY%\015 /V 1 /D "%cdrom%\Setup\Apps\VCE_MSTI.exe" /fREG ADD %KEY%\020 /VE /D "MS Office 2003 (Word, Excel, and PowerPoint)" /fREG ADD %KEY%\020 /V 1 /D "%cdrom%\Setup\Apps\Office.exe" /fREG ADD %KEY%\025 /VE /D "MS Frontpage 2003" /fREG ADD %KEY%\025 /V 1 /D "%cdrom%\Setup\Apps\Frontpage.exe" /fREG ADD %KEY%\026 /VE /D "Ad-Aware Pro" /fREG ADD %KEY%\026 /V 1 /D "%cdrom%\%cdrom%\Setup\Apps\Aawaawsepro.exe /S" /fREG ADD %KEY%\026 /V 2 /D "taskkill /IM Adaware.exe /F" /fREG ADD %KEY%\026 /V 3 /D "taskkill /IM hh.exe /F" /fREG ADD %KEY%\026 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /fREG ADD %KEY%\030 /VE /D "Spybot S&D" /fREG ADD %KEY%\030 /V 1 /D "%cdrom%\Setup\Apps\spybot\spybotsd13.exe /silent" /fREG ADD %KEY%\035 /VE /D "SpyBot S&D Updates" /fREG ADD %KEY%\035 /V 1 /D "%cdrom%\Setup\Apps\spybot\spyupd.exe" /fREG ADD %KEY%\040 /VE /D "AOL Instant Messenger" /fREG ADD %KEY%\040 /V 1 /D "%cdrom%\Setup\Apps\AIMInstall.exe" /fREG ADD %KEY%\045 /VE /D "McAfee AntiVirus 7" /fREG ADD %KEY%\045 /V 1 /D "%cdrom%\Setup\Apps\McAfee\McAfee.exe" /fREG ADD %KEY%\050 /VE /D "McAfee Updates (12/29/04)" /fREG ADD %KEY%\050 /V 1 /D "%cdrom%\Setup\Apps\McAfee\sdat4417.exe /silent" /fREG ADD %KEY%\055 /VE /D "FirstClass 8.0 SP1" /fREG ADD %KEY%\055 /V 1 /D "%cdrom%\Setup\Apps\FirstClass.exe" /fREG ADD %KEY%\060 /VE /D "QuickTime Alternative 1.39" /fREG ADD %KEY%\060 /V 1 /D "%cdrom%\Setup\Apps\quicktimealt139.exe /verysilent /sp-" /fREG ADD %KEY%\065 /VE /D "Real Alternative 1.29" /fREG ADD %KEY%\065 /V 1 /D "%cdrom%\Setup\Apps\realalt129.exe /verysilent /sp-" /fREG ADD %KEY%\070 /VE /D "WinRAR 3.42" /fREG ADD %KEY%\070 /V 1 /D "%cdrom%\Setup\Apps\wrar342.exe /s" /fREG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /fREG ADD %KEY%\000 /V 1 /D "%cdrom%\Setup\Apps\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""" /fREG ADD %KEY%\080 /VE /D "Java Runtime 5.0.1" /fREG ADD %KEY%\080 /V 1 /D "%cdrom%\Setup\Apps\jre501.exe" /fREG ADD %KEY%\085 /VE /D "Macromedia Shockwave/Flash Player 10.0" /fREG ADD %KEY%\085 /V 1 /D "%cdrom%\Setup\Apps\mm_fl_sw_installer.exe /s" /fREG ADD %KEY%\090 /VE /D "Apply Registry Tweaks" /fREG ADD %KEY%\090 /V 1 /D "REGEDIT /S %cdrom%\Setup\RegTweaks.reg" /fREG ADD %KEY%\095 /VE /D "Reboot the computer to finish installation"RED ADD %KEY%\095 /V 1 /D "shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."EXIT
Tsunami Posted February 19, 2005 Posted February 19, 2005 Your error is in this 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:\win51ip.SP2 SET CDROM=%%i:%%i already contains a : at the end, so your line should be: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\win51ip.SP2 SET CDROM=%%i
amp_man Posted February 20, 2005 Author Posted February 20, 2005 wow thanks for the help. BTW, theSET PP=%CDROM%\is added by the runonceex maker, it's completely unused, I got rid of it once, but I must've forgotten to save it, it's been completely removed now. That runonceex.cmd creator has some serious issues, that malformed %cdrom% detection error, the %pp% thing (which causes the cdrom to be called twice, it adds %PP% before the path), and any time you access the "file" menu, it asks you to save... Anyways, I think runonceex is complex enough for me, asta, my cd right now is at 696mb, I wanna get it running and leave it alone also, I have no custom themes, and those VCE programs take ~5min apiece to extract on the test machine I've got, so there shouldn't be any problems...I hope.edit: and it works perfectly, thanks again guys!
RBCC Posted March 5, 2005 Posted March 5, 2005 B) I have a curious question on an unattended install and I have to add only two lines to a runonceex, do I just add the lines or do I have to add all those lines with it?
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