Jump to content

Recommended Posts

Posted

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\005 /VE /D "Norton Antivirus 2003" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\010 /VE /D "Winzip" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\"Program Files"\winzip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\020 /VE /D "MSN Messanger" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\025 /VE /D "SunJava" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\030 /VE /D ".Net FrameWork" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\035 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /f

EXIT

Any one has any idea where i went wrong??


Posted

First of all, did you look here -

MSFN's Unattended XP CD

Is 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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\005 /VE /D "Norton Antivirus 2003" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\010 /VE /D "Winzip" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Program Files\winzip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\020 /VE /D "MSN Messanger" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\025 /VE /D "SunJava" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\030 /VE /D ".Net FrameWork" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\035 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /f

EXIT

Now 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-" /f

hope it works!

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

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