doc_ufo Posted August 3, 2004 Posted August 3, 2004 I've got a problem regarding installation of program....i've followed the guide on writing RunOnceEx.cmd but all it seems to do is to copy all the software and put them in a folder called install without actually installing the soft ware into windows...here's my RunOnceEx.cmd: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%\005 /VE /D "Norton Antivirus 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi "/QB REBOOT=Suppress"" /fREG ADD %KEY%\010 /VE /D "Winzip" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\"Program Files"\winzip\winzip32.exe /noqp /autoinstall" /fREG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""" /fREG ADD %KEY%\020 /VE /D "MSN Messanger" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi "/QB REBOOT=Suppress"" /fREG ADD %KEY%\025 /VE /D "SunJava" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /fREG ADD %KEY%\030 /VE /D ".Net FrameWork" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi "/QB REBOOT=Suppress"" /fREG ADD %KEY%\035 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /fEXITAny one has any idea where i went wrong??
lpl Posted August 4, 2004 Posted August 4, 2004 First of all, did you look here - MSFN's Unattended XP CDIs your runonceex.cmd together in $OEM$ folder with your cmdlines.txt?Anyways, your backslashes are in the wrong places...i'm not an expert, but try this: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%\005 /VE /D "Norton Antivirus 2003" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi /QB REBOOT=Suppress" /fREG ADD %KEY%\010 /VE /D "Winzip" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Program Files\winzip\winzip32.exe /noqp /autoinstall" /fREG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /fREG ADD %KEY%\020 /VE /D "MSN Messanger" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB REBOOT=Suppress" /fREG ADD %KEY%\025 /VE /D "SunJava" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /fREG ADD %KEY%\030 /VE /D ".Net FrameWork" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi /QB REBOOT=Suppress" /fREG ADD %KEY%\035 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /fEXITNow i'm not sure about the ADobe reader at all (one too many slashes) but mine executes from a MSI file. try and see if you can execute the file, and cancel out at the earliest time possible, and go to C:\windows\cache\ and see if you got a folder there for this.. if yes, copy the entire folder to your unattended cd and use that instead. the switch should then look something like this:REG ADD %KEY%\015 /V 1 /D "msiexec.exe /i \"%systemdrive%\install\Applications\AdobeReader6\Adobe Reader 6.0.1.msi\" /qb-" /fhope it works!
doc_ufo Posted August 5, 2004 Author Posted August 5, 2004 First of all, did you look here - Anyways, your backslashes are in the wrong places...i'm not an expert, but try this:yeah u r right....my backslashes are all wrong...fixed the problem already.... thanks for the help...
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