Cti Posted December 12, 2007 Posted December 12, 2007 (edited) I am not quite understanding the comands in runonceex.cmd here is the example from the unattended Windows guide cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /fREG ADD %KEY%\010 /VE /D "Alcohol 120" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /fREG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /fREG ADD %KEY%\015 /VE /D "Diskeeper 8" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s /v/qn" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /fNow what is the command in red doing ?REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fAgain the same thing here, also I see the /V and /D also /f at the end of the command ? these must be switches of some kind Please forgive my ignorance EDIT:I am also having some trouble with cleanup.cmd why would this not work ?DEL "%WINDIR%\Media\Windows XP Ding.wav" Edited December 12, 2007 by Cti
jbm Posted December 12, 2007 Posted December 12, 2007 runonecex.cmd is just a batch file.If you open a command window andtype reg.exe /?You will get help on the command and switchesand what they do.don't know about cleanup.cmd, it lookslike that should work to me too.
leadboots5 Posted December 12, 2007 Posted December 12, 2007 (edited) also from the guide:"In short, all you really need to do is duplicate each REG ADD entry, but change the numbering and everything enclosed in quotations. If you want more information, type REG ADD /? at the Command Prompt"lays it out very nicely what all the switches are as for the cleanup, maybe because it is protected and/or remakes itself? thats just a spit in the dark. no idea really Edited December 12, 2007 by leadboots5
Cti Posted December 12, 2007 Author Posted December 12, 2007 (edited) Thanks , I guess I can figure out all the switches ... I am still wondering what REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fwhy have a reg key for importing registry tweaks .. the first one .. I don't get it ?EDIT:Yeah maybe it needs the /Q switch .. I will try Edited December 12, 2007 by Cti
jbm Posted December 12, 2007 Posted December 12, 2007 There could be tweaks that don't work unless theyare applied after setup has finished and your loggedinto windows.I have a tweak that unchecks the 'always show confirmationwhen deleting files' thats on the recycle bin when you right click.that doesn't work unless I apply it after I've loggee on
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