Jump to content

RunOnceEX not working correctly!


Recommended Posts


your RunonceEx code is here:

ps:you can post the code directly to your topic,if it's not long.

cmdow @ /HID
@Echo Off

rem PP=%SystemDrive%\Install\

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

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

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Acrobat Reader 6.0.1" /f
REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\AdobeRdr\Rdr601.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.2" /f
REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\AdobeRdr\Install\rdr602up.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\003 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\Java\Java_142.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

REG ADD %KEY%\004 /VE /D "Symantec Antivirus Corporate 9" /f
REG ADD %KEY%\004 /V 1 /D "%SystemDrive%\Install\SAV\SAVC.msi\" /qn RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\005 /VE /D "Importing Registry Tweaks..." /f
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\Registry\regtweaks.reg" /f

REG ADD %KEY%\006 /VE /D "Testing USB 2.0..." /f
REG ADD %KEY%\006 /V 1 /D "%SystemDrive%\Install\Registry\USB2Test.vbs" /f

REG ADD %KEY%\007 /VE /D "Cleaning Up and Rebooting..." /f
REG ADD %KEY%\007 /V 1 /D "%SystemDrive%\Install\cleanup.cmd" /f

EXIT

oh,i can't find any error . waiting for expert ...

perhaps,can .reg file and .vbs files run directly?

Link to comment
Share on other sites

So long as you have OemPreinstall = Yes in winnt.sif. The software you have in $oem$\$1\Install will be copied to %systemdrive%.

I'm unsure if your adobe upgrade address is correct. I think you mixed up AdobeRdr folder with install folder?

Double check your cmdlines.txt, to ensure that it is addressed to execute this batch file in it's location.

Link to comment
Share on other sites

and you have a few un-escaped quote's there too, which would cause problems. Try...

cmdow @ /HID

@Echo Off

rem PP=%SystemDrive%\Install\

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

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

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

REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Acrobat Reader 6.0.1" /f

REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\AdobeRdr\Rdr601.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.2" /f

REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\Install\AdobeRdr\rdr602up.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\003 /VE /D "Sun Java VM 1.4.2" /f

REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\Java\Java_142.exe /s /v /qn ADDLOCAL=jrecore IEXPLORER=1" /f

REG ADD %KEY%\004 /VE /D "Symantec Antivirus Corporate 9" /f

REG ADD %KEY%\004 /V 1 /D "%SystemDrive%\Install\SAV\SAVC.msi /qn RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\005 /VE /D "Importing Registry Tweaks..." /f

REG ADD %KEY%\005 /V 1 /D "REGEDIT /S %SystemDrive%\Install\Registry\regtweaks.reg" /f

REG ADD %KEY%\006 /VE /D "Testing USB 2.0..." /f

REG ADD %KEY%\006 /V 1 /D "%SystemDrive%\Install\Registry\USB2Test.vbs" /f

REG ADD %KEY%\007 /VE /D "Cleaning Up and Rebooting..." /f

REG ADD %KEY%\007 /V 1 /D "%SystemDrive%\Install\cleanup.cmd" /f

EXIT

And make sure all the paths are correct.

Link to comment
Share on other sites

OK, i added the "regedit" --- Thanks works great. :thumbup

Fixed the reader update command line -- thanks, i feel dumb for overlooking.

The list shows up, but still runs thru them like they werent there and none of the applications install.

Do i need to do like a batch file, and list a "start /wait " line in there???

PS: When i was making my RunOnceEX file... I used an utomated tool. I don't remember the website where i got it, but it made the code for me when i seleted the program i wanted installed. If anyone would like the program, email me. It's 1.16MB.

Edited by BrandonS_Mil
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...