Help - Search - Members - Calendar
Full Version: Problem with RunOnceEX
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
eran2004
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.
urie
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
eagle00789
another mistake:
QUOTE
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:
QUOTE
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:
QUOTE
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:
QUOTE
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
eran2004
Thank you both guys, for the debugging ! That's why I never went into programming ....
Any thoughts about what's going on with diskeeper?
eagle00789
use the switches /S /qb for diskeeper. Watch that Capital S
eran2004
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.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.