Jump to content

Problem with RunOnceEX


eran2004

Recommended Posts

This is my RunOnceEX.cmd script:

cmdow @ /HID

@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\"\"" /f

REG ADD %KEY%\010 /VE /D "Diskeeper 8" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\Diskeeper\setup.exe /s /v/qn" /f

REG ADD %KEY%\015 /VE /D "Nero Burning ROM" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Nero\nero63120.exe /silent /noreboot /no_ui /sn=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /write_sn" /f

REG ADD %KEY%\020 /VE /D "Flashget 1.6" /f

REG ADD %KEY%\020 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Flashget\fgf160.exe /s" /f

REG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Flashget\register.reg" /f

REG ADD %KEY%\030 /VE /D "WinRar 3.30" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar330.exe /s" /f

REG ADD %KEY%\040 /VE /D "WinISO 5.3" /f

REG ADD %KEY%\040 /V 1 /D ""%systemdrive%\install\Applications\WinISO\winiso53.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\040 /V 2 /D "taskkill /F /IM WinISO.exe" /f

Of these apps only Nero and Winrar actually install. Diskeeper - an error message saying it can't find setup.exe . When I check the folder, it is indeed not there: instead there is a corrupted file $temp$.~~~ . The file on the XP CD is fine and runs properly. I don't understand why the corruption. It's as if it stopped copying the file in the middle.

For Acrobat, Flashget and WinISO - there is no error message. They simply don't install, even though they are properly copied to the HD. The switches I use are from this board and the main page.

Any ideas?

Thanks.

Link to comment
Share on other sites


REG ADD %KEY%\5035 /VE /D "Flashget 1.6" /f

REG ADD %KEY%\5035 /V 1 /D "%systemdrive%\Install\Flashget\fgf160.exe /S" /f

REG ADD %KEY%\5035 /V 2 /D "REGEDIT /S %systemdrive%\Install\Flashget\Flashget1.reg" /f

this works for me

Link to comment
Share on other sites

another mistake:

REG ADD %KEY%\040 /VE /D "WinISO 5.3" /f

REG ADD %KEY%\040 /V 1 /D ""%systemdrive%\install\Applications\WinISO\winiso53.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\040 /V 2 /D "taskkill /F /IM WinISO.exe" /f

should be:
REG ADD %KEY%\040 /VE /D "WinISO 5.3" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Applications\WinISO\winiso53.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\040 /V 2 /D "taskkill /F /IM WinISO.exe" /f

and the following:
REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\"\"" /f

should be:
REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /f

Link to comment
Share on other sites

Thanks eagle.

actually the /s /v/qn switches work better than /S /qb because I don't need to click the Next button. My problem is: why does the setup.exe file get corrupted during the copying to the disk?

As for Winiso - I still need to click Next buttons. Any way arround this?

edit - I just used the /s on it and it worked fine.

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