Jump to content

My problems with RunOnceEx - Help needed


Recommended Posts

Hi Guys. a Newbie here. I've been experimenting with the different guides given here and in unattended.msfn.org. However, I have run into some problems.

I'll share with you my RunOnceEx.cmd file, and maybe you can help me with what has gone wrong, or where can I improve this unattended DVD I'm making.

[B]RunOnceEx.cmd[/B]
cmdow @ /HID
@echo off
IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

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

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

REG ADD %KEY%\005 /VE /D "Acrobat 6" /f
REG ADD %KEY%\005 /V 1 /D "\"%CDROM%\install\Acrobat\acroPRo.msi\" " \f

REG ADD %KEY%\010 /VE /D "AdAware SE" /f
REG ADD %KEY%\010 /V 1 /D "\"%CDROM%\install\AdAware\aawsepersonal.exe\" /s" \f

REG ADD %KEY%\015 /VE /D "Direct X 9.0c" /f
REG ADD %KEY%\015 /V 1 /D "\"%CDROM%\install\DirectX\dxsetup.exe\"" \f

REG ADD %KEY%\020 /VE /D "Microsoft JavaVM - Build 3810" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\install\JavaVM\MSJavaVM_3810.exe" /f

REG ADD %KEY%\025 /VE /D "KaZaA Lite" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\install\kazaalt\klitekpp243e.exe" /f

REG ADD %KEY%\030 /VE /D "MSN Messenger 6" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\install\Messenger\MsnMsgs.msi /QB" /f

REG ADD %KEY%\035 /VE /D "Nero Burning R.O.M. 6.3.1.17" /f
REG ADD %KEY%\035 /V 1 /D "REGEDIT /S %CDROM%\install\Nero\register.reg" /f
REG ADD %KEY%\035 /V 2 /D "%CDROM%\install\Nero\Nero63117.exe /silent /noreboot /no_ui" /f

REG ADD %KEY%\040 /VE /D "Microsoft Office 2003 Full" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\install\Office2003\setup.exe TRANSFORMS=CUSTOM.MST /qb-" /f
REG ADD %KEY%\040 /V 2 /D "%CDROM%\install\Frontpage\setup.exe TRANSFORMS=CUSTOM.MST /qb-" /f
REG ADD %KEY%\040 /V 3 /D "%CDROM%\install\Onenote\setup.exe TRANSFORMS=CUSTOM.MST /qb-" /f
REG ADD %KEY%\040 /V 4 /D "%CDROM%\install\Project\setup.exe TRANSFORMS=CUSTOM.MST /qb-" /f
REG ADD %KEY%\040 /V 5 /D "%CDROM%\install\Visio\setup.exe TRANSFORMS=CUSTOM.MST /qb-" /f

REG ADD %KEY%\045 /VE /D "PGP 8.0" /f
REG ADD %KEY%\045 /V 1 /D "\"%CDROM%\install\PGP8\PGP8.0.exe\"" \f

REG ADD %KEY%\050 /VE /D "Skype" /f
REG ADD %KEY%\050 /V 1 /D "\"%CDROM%\install\Skype\SkypeSetup.exe\" /VERYSILENT /SP-" \f

REG ADD %KEY%\055 /VE /D "SmartFTP" /f
REG ADD %KEY%\055 /V 1 /D "\"%CDROM%\install\SmartFTP\smartFTP.msi\" /qb" \f

REG ADD %KEY%\060 /VE /D "UltraISO 7.21" /f
REG ADD %KEY%\060 /V 1 /D "\"%CDROM%\install\UltraISO\uiso7_me.exe\"" \f

REG ADD %KEY%\065 /VE /D "Winamp 5" /f
REG ADD %KEY%\065 /V 1 /D "\"%programfiles%\Winamp\winamp1.exe\"" /f

REG ADD %KEY%\070 /VE /D "WinRar 3.30" /f
REG ADD %KEY%\070 /V 1 /D "\"%programfiles%\WinRaR\winrar_3.30_corporate_edition.exe\" /s" /f


REG ADD %KEY%\075 /VE /D "Winzip 9" /f
REG ADD %KEY%\075 /V 1 /D "REGEDIT /S %CDROM%\Install\Winzip\winzip.reg" /f
REG ADD %KEY%\075 /V 2 /D "\"%programfiles%\Winzip\winzip32.exe\" /notip /autoinstall" /f

REG ADD %KEY%\076 /VE /D "Daemon Tools" /f
REG ADD %KEY%\076 /V 1 /D "\"%CDROM%\install\Daemon Tools\daemon.msi\" /qb" \f


REG ADD %KEY%\080 /VE /D "Applying Registry Components, Cleaning up and Rebooting" /f
REG ADD %KEY%\080 /V 1 /D "REGEDIT /S \"%CDROM%\install\Registryhacks.reg" /f
REG ADD %KEY%\080 /V 2 /D "%CDROM%\Install\cleanup.cmd" /f

EXIT

Ok, so You can see I'm installing a big bunch of SW. Now, the funny thing is this. Some of it does install (such as Kazaa, Nero, Office, Winzip, WinRAR, the MS JavaVM, Winamp and Messenger 6.2). But for some WEIRD reason, the rest is just skipped by the installer. I've checked paths and details but can't find what's wrong with this. One thing I noticed, SmartFTP was installing before I decided to change to the RunOnceEx method.

Can someone show me the light here? Tell me what I'm doing wrong or what I can improve. I'm starting to experiment with WinInstall to modify .MSI files. I'm a quick learner, but I still can't install Adobe Acrobat if the installer doesn't want to run the .msi package.

By the way, this is for a WinXPSP2 Unattended instalation, forgot to say! ;)

Link to comment
Share on other sites


DisabledTrucker... You are a genius...

Or maybe I'm just too tired to keep trying this. I didn't notice that difference in those lines. You may be right.

The /f (According to some help file that I can't remember) apparently overwrite any existing registry key with the same ID (Number).

The proper syntax should be /f and not \f

Again Thanks...

I knew it was something simple....

cheers!

:D

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