Jump to content

cmdlines.txt stuck


Recommended Posts

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.cmd

cmdow @ /HID

@echo off

IF 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\RunOnceEx

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

REG ADD %KEY%\005 /VE /D "MSN Messenger 6.2" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\messenger\MsnMsgs.msi /qn" /f

REG ADD %KEY%\005 /VE /D "Daemon Tools" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\daemon\daemon346.msi /qn REBOOT=Suppress" /f

REG ADD %KEY%\005 /VE /D "Nod32" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nod32\setup\setup.exe /silentmode" /f

REG ADD %KEY%\005 /V 2 /D "%CDROM%\install\nod32\clean.cmd" /f

REG ADD %KEY%\005 /V 3 /D "REGEDIT /S %CDROM%\install\nod32\nod32.reg" /f

REG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.3.1.6" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nero\nero6316.exe /SILENT /NOREBOOT /SN=*********************** /WRITE_SN /qn" /f

REG ADD %KEY%\005 /VE /D "Real Alternative 1.23" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\real\realalt123.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\005 /VE /D "Quicktime Alternative 1.33" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\quick\qalt133.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\005 /VE /D "WinRAR 3.30 Corporate" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winrar\wrar330.exe /S" /f

REG ADD %KEY%\005 /VE /D "WinISO 5.3" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winiso\winiso.exe /SILENT" /f

REG ADD %KEY%\005 /VE /D "O&O Defrag Professional v6.0 build 710" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\defrag\defragpro.exe" /f

REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\install\defrag\defrag.reg" /f

REG ADD %KEY%\005 /VE /D "Java RE 1.5b" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\java\j2re.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

REG ADD %KEY%\005 /VE /D "Aplying Register Tweaks" /f

REG ADD %KEY%\005 /V 1 /D "REGEDIT /S %CDROM%\install\regtweaks.reg" /f

REG ADD %KEY%\005 /VE /D "OpenOffice 1.1.0" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\openoffice\setup.exe" /f

REG ADD %KEY%\005 /VE /D "Irfanview 3.91" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\irfanview\iview.exe" /f

REG ADD %KEY%\005 /VE /D "Opera 7.50" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\opera\setup.exe" /f

REG ADD %KEY%\005 /VE /D "Azureus 2.0.8.4" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\azureus\setup.exe" /f

REG ADD %KEY%\005 /VE /D "Codecs" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\codecs\1.exe" /f

REG ADD %KEY%\005 /V 2 /D "%CDROM%\install\codecs\2.exe" /f

REG ADD %KEY%\005 /V 3 /D "%CDROM%\install\codecs\3.exe" /f

REG ADD %KEY%\005 /V 4 /D "%CDROM%\install\codecs\4.exe" /f

REG ADD %KEY%\005 /VE /D "Flash and Shockwave" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\flashshock\flash.exe" /f

REG ADD %KEY%\005 /V 2 /D "%CDROM%\install\flashshock\shock.exe" /f

REG ADD %KEY%\005 /VE /D "Winamp 5.03" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\winamp\winamp.exe" /f

REG ADD %KEY%\005 /VE /D "BSplayer 100.808" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\bsplayer\bsplayer.exe" /f

REG ADD %KEY%\005 /VE /D "nVidia Display Drivers" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nvidia\setup.exe" /f

REG ADD %KEY%\005 /VE /D "nForce 4.24" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\nforce\setup.exe" /f

PAUSE

EXIT

Link to comment
Share on other sites


the numbers should bt different. E.g.

cmdow @ /HID
@echo off

IF 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\RunOnceEx

REG ADD %KEY% /V TITLE /D "XPSP1a instalation of all..." /f

REG ADD %KEY%\005 /VE /D "Omega Driversv2.5.36b" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Drivers\ATI\Omega\Setup.exe -s -f1\"%CDROM%\Drivers\ATI\Omega\setup.iss"" /f

REG ADD %KEY%\010 /VE /D "LiveDrive 10-03-03" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Drivers\livedrive\Audio\Setup\Setup.exe -s -f1\"%CDROM%\Drivers\livedrive\Audio\Setup\setup.iss"" /f

REG ADD %KEY%\015 /VE /D "Perf610_win_5.7f_en" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Drivers\scanner\Setup.exe -s -f1\"%CDROM%\Drivers\scanner\setup.iss"" /f

REG ADD %KEY%\020 /VE /D "Vesta WebCam 1.6" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Drivers\webCam\Setup.exe -s f1\"%CDROM%\Drivers\webCam\setup.iss"" /f

REG ADD %KEY%\025 /VE /D "Itouch v2.22 build 289" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Drivers\Keyboard\Setup.exe -s -a -s -f1\"%CDROM%\Drivers\keybord\setup.iss"" /f

005, 010, 015, 020 etc

Link to comment
Share on other sites

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=%%i

also, 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 detection

like OEMPnPDriversPath="Drivers\NForce\AGP;Drivers\NForce\MemCtl;Drivers\NForce\SMBus;Drivers\NForce\IDE;Drivers\NVidia\Deton8r"

for example

Also, 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...