AztecMystic Posted May 23, 2004 Share Posted May 23, 2004 After the windows installer executes cmdlines.txt at T-12, a dos screen pops up and dissapears immediately(I guess this is the runonceex) and after that is just stops, I've read through the guide from mfsn more then once and can't seem to find the problem.The CD.txt is on the CD, the cmdlines.txt and the RunOnceEx.cmd are both in the $OEM$ folder. I have also moved all my installs to the install folder which is at the same level as the $OEM$ folder. I just can't find any problems, can anyone find what I've overlooked here? Thx in advance.This is my cmdlines.txt[COMMANDS]"RunOnceEx.cmd"This is my RunONceEx.cmdcmdow @ /HID@echo offIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\messenger\MsnMsgs.msi /qn" /fREG ADD %KEY%\005 /VE /D "Daemon Tools" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\daemon\daemon346.msi /qn REBOOT=Suppress" /fREG ADD %KEY%\005 /VE /D "Nod32" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nod32\setup\setup.exe /silentmode" /fREG ADD %KEY%\005 /V 2 /D "%CDROM%\install\nod32\clean.cmd" /fREG ADD %KEY%\005 /V 3 /D "REGEDIT /S %CDROM%\install\nod32\nod32.reg" /fREG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.3.1.6" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nero\nero6316.exe /SILENT /NOREBOOT /SN=*********************** /WRITE_SN /qn" /fREG ADD %KEY%\005 /VE /D "Real Alternative 1.23" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\real\realalt123.exe /VERYSILENT /SP-" /fREG ADD %KEY%\005 /VE /D "Quicktime Alternative 1.33" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\quick\qalt133.exe /VERYSILENT /SP-" /fREG ADD %KEY%\005 /VE /D "WinRAR 3.30 Corporate" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winrar\wrar330.exe /S" /fREG ADD %KEY%\005 /VE /D "WinISO 5.3" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winiso\winiso.exe /SILENT" /fREG ADD %KEY%\005 /VE /D "O&O Defrag Professional v6.0 build 710" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\defrag\defragpro.exe" /fREG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\install\defrag\defrag.reg" /fREG ADD %KEY%\005 /VE /D "Java RE 1.5b" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\java\j2re.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /fREG ADD %KEY%\005 /VE /D "Aplying Register Tweaks" /fREG ADD %KEY%\005 /V 1 /D "REGEDIT /S %CDROM%\install\regtweaks.reg" /fREG ADD %KEY%\005 /VE /D "OpenOffice 1.1.0" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\openoffice\setup.exe" /fREG ADD %KEY%\005 /VE /D "Irfanview 3.91" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\irfanview\iview.exe" /fREG ADD %KEY%\005 /VE /D "Opera 7.50" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\opera\setup.exe" /fREG ADD %KEY%\005 /VE /D "Azureus 2.0.8.4" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\azureus\setup.exe" /fREG ADD %KEY%\005 /VE /D "Codecs" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\codecs\1.exe" /fREG ADD %KEY%\005 /V 2 /D "%CDROM%\install\codecs\2.exe" /fREG ADD %KEY%\005 /V 3 /D "%CDROM%\install\codecs\3.exe" /fREG ADD %KEY%\005 /V 4 /D "%CDROM%\install\codecs\4.exe" /fREG ADD %KEY%\005 /VE /D "Flash and Shockwave" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\flashshock\flash.exe" /fREG ADD %KEY%\005 /V 2 /D "%CDROM%\install\flashshock\shock.exe" /fREG ADD %KEY%\005 /VE /D "Winamp 5.03" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winamp\winamp.exe" /fREG ADD %KEY%\005 /VE /D "BSplayer 100.808" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\bsplayer\bsplayer.exe" /fREG ADD %KEY%\005 /VE /D "nVidia Display Drivers" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nvidia\setup.exe" /fREG ADD %KEY%\005 /VE /D "nForce 4.24" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nforce\setup.exe" /fPAUSEEXIT Link to comment Share on other sites More sharing options...
codeblue Posted May 23, 2004 Share Posted May 23, 2004 the numbers should bt different. E.g.cmdow @ /HID@echo offIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\Currentversion\RunOnceExREG ADD %KEY% /V TITLE /D "XPSP1a instalation of all..." /fREG ADD %KEY%\005 /VE /D "Omega Driversv2.5.36b" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Drivers\ATI\Omega\Setup.exe -s -f1\"%CDROM%\Drivers\ATI\Omega\setup.iss"" /fREG ADD %KEY%\010 /VE /D "LiveDrive 10-03-03" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Drivers\livedrive\Audio\Setup\Setup.exe -s -f1\"%CDROM%\Drivers\livedrive\Audio\Setup\setup.iss"" /fREG ADD %KEY%\015 /VE /D "Perf610_win_5.7f_en" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Drivers\scanner\Setup.exe -s -f1\"%CDROM%\Drivers\scanner\setup.iss"" /fREG ADD %KEY%\020 /VE /D "Vesta WebCam 1.6" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Drivers\webCam\Setup.exe -s f1\"%CDROM%\Drivers\webCam\setup.iss"" /fREG ADD %KEY%\025 /VE /D "Itouch v2.22 build 289" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\Drivers\Keyboard\Setup.exe -s -a -s -f1\"%CDROM%\Drivers\keybord\setup.iss"" /f005, 010, 015, 020 etc Link to comment Share on other sites More sharing options...
AztecMystic Posted May 23, 2004 Author Share Posted May 23, 2004 Thx a lot, that did the trick Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 24, 2004 Share Posted May 24, 2004 working out the cdrom drive letter you can change it to just one line:for %%i in (C: D: E: F: G: H:) do if exist %%i\CD.txt set CDROM=%%ialso, if you were wondering AztecMystic, the numbers don't really mean anything in particular, they are just the order that things will be installed... they can be 5 apart, 10 apart, 1 apart, whatever you want... i normally set mine 5 apart so i can add things in between later on easily without having to change every number... you should put things that take longer to install at the start of the list...with the nvidia installers, they use install shield, so you can make silent installations for them using /R and /s (run setup.exe /R and install it like normal, then grab the %windir%\setup.iss file, stick it in the setup.exe directory, then next time run setup.exe /s to silent install)or for the drivers, you could extract the contents of the installers, make a couple of different directories (the directories that contain the INF files are required), add the directory paths to the winnt.sif DriversPath section, then windows will install the drivers only if needed during PnP detectionlike OEMPnPDriversPath="Drivers\NForce\AGP;Drivers\NForce\MemCtl;Drivers\NForce\SMBus;Drivers\NForce\IDE;Drivers\NVidia\Deton8r"for exampleAlso, with the setup.iss files, if they are in the same directory as setup.exe, you don't have to specify the location using the -f1 switch... just the -s switch will suffice (only use -f1 if the setup.iss file is in a different location or isn't called setup.iss) Link to comment Share on other sites More sharing options...
Alanoll Posted May 24, 2004 Share Posted May 24, 2004 huh....and here I would have thought that setup stalled because you had PAUSE right at the end of your RunOnceEX batch file, and you can't tell it to continue since you hid it with cmdow at the beginning.True the numbers thing is a good point, and alittle neccesary to actually get them all to install, but the stall would be the PAUSE.I personally rename my iss file, but I also end up using -f2 on my installshield setups so they don't error out. Some are really picky about being able to right a log, and the default locaiton is in the installation directory, which really bites when it's on a CD. 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