right_paw Posted May 21, 2004 Posted May 21, 2004 my runonce ex doesnt appear to run does any one have any ideas cmdlines.txt[COMMANDS]pause"REGEDIT /S RegTweaks.reg"pause"RunOnceEx.cmd"pauseRunOnceEx.cmdcmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\002 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\adobe123.exe /qn" /f /Q /O /N /ZREG ADD %KEY%\005 /VE /D "AD Aware 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\aaw61234.exe /qn" /f /Q /O /N /ZREG ADD %KEY%\006 /VE /D "Winzip 9.0" /fREG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\winzip90.exe /qn" /f /Q /O /N /Zhave i missed anything? does cmdlines.txt run automatically
seapagan Posted May 21, 2004 Posted May 21, 2004 lone crusader,The syntax is wrong in your RunOnceEx.cmd.On the lines with 'REG ADD ...' you should only have the '/f' switch at the end, the others are probably causing the command to fail and so the reg entry is not being added. The switches you have at the end (/Q /O /N /Z) look like the ones for MS hotfixes. Any silent switches you need for the app should go inside the last quote after the filename, ie something like this :REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\adobe123.exe <silent switches>" /fCheck out the 'application switches' forum for the correct switches for each application. this page gives you some examples.If you remove the 'cmdow @ /HID' from the cmd file, and put pauses between the commands for testing you will probably see the errors.SP
right_paw Posted May 21, 2004 Author Posted May 21, 2004 when the batch file is executed on its own it does add the regestry keys to the registry but i dont know if in the install it is ever executed
right_paw Posted May 21, 2004 Author Posted May 21, 2004 just ran another install and the keys are not in the registry
seapagan Posted May 21, 2004 Posted May 21, 2004 Did the pauses you put in the CMDLINES.TXT show up? I dont know exactly what commands are available at this point in the installation, if they are not showing up, maybe that is crashing the CMDLINES.TXT? Did the regtweaks work from unattended install?If yes to both, try stepping through the runonce cmd using pauses between the reg comands and without hiding the window, see if you see any errors. Make sure the cmd file is in the same directory as the CMDLINES.TXT (C:\XPCD\$OEM$\ for example), and filename correct.I'm on shift atm, so can't check my own CD's for a bit, this is from my (slightly dodgy) memory ... And yer switches for the REG lines are a bit wrong - maybe it works ok from a full install, but not when the OS is not totally installed? When you run the cmd file from an installed windows and then reboot, do the progs get installed correctly?SP
right_paw Posted May 22, 2004 Author Posted May 22, 2004 the regtweaks dont run, i have run it without the pauses in the cmdlines.txt and that didnt seem to work either
Alanoll Posted May 22, 2004 Posted May 22, 2004 are both Regtweaks.reg and RunOnceEX.cmd in $OEM$?is cmdlines.txt in $OEM$?as stated before, the syntax's are wrong.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\002 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\adobe123.exe /qn" /fREG ADD %KEY%\005 /VE /D "AD Aware 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\aaw61234.exe /qn" /fREG ADD %KEY%\006 /VE /D "Winzip 9.0" /fREG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\winzip90.exe /qn" /fand not every application uses /qn. As stated before, search for the correct ones. I fixed the code above to remove the invalid syntax.PAUSE does not work in cmdlines.txt just for reference.And when do you check for the keys? When you see the desktop? If so, you won't see them if they did work. They delete themselves when run. Presss <CTRL><F10> during setup at about T-10 or so, and type REGEDIT, then look for the keys.
seapagan Posted May 22, 2004 Posted May 22, 2004 Gah, seems your cmdlines.txt is not being run. Check your winnt.sif for the line :[unattended]OemPreinstall=YesUnattendSwitch="yes"Not sure if the second one is required for this problem, but the first one tells windows you have an $OEM$ directory. Otherwise, errr. hmmm. dunno. Still got 6hrs of a 12hr shift to run, headache and complete lack of motivation to my job due to lack of sleep. 2 weeks left before I see a beer SP
right_paw Posted May 22, 2004 Author Posted May 22, 2004 you were right about the switches to many parameters just goes to show you cant believe everthing you read will try another install now
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now