Jump to content

WinXp uA RunOnceEx fails w/ Daemon Tools


Recommended Posts

hey guys,

Great forum. I'm new here, and found it extremely useful. I've got this little problem, but it's driving me nuts.

For my unattended XP (HE), I am using RunOnceEx which calls command scripts to install some apps automatically. Everything works just fine except Daemon tools. But if I leave/copy the install folder on C: and run the Daemon .cmd manually everything works tip top. Somehow it fails if I do an unattended install though...

Here's my RunOnceEx command script (which is in the $OEM$ folder):

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\010 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\AcrobatRdr70.cmd" /f

REG ADD %KEY%\020 /VE /D "Daemon Tools" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Daemon.cmd" /f

REG ADD %KEY%\030 /VE /D "Nero Burning ROM 6" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\Nero.cmd" /f

REG ADD %KEY%\040 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\WMP.cmd" /f

REG ADD %KEY%\050 /VE /D "Mozilla Firefox 1.03" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\Firefox.cmd" /f

REG ADD %KEY%\060 /VE /D "Java 2 Runtime Enviroment" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\Install\J2RE.cmd"

REG ADD %KEY%\070 /VE /D "Microsoft .NET Framework 1.1 Service Pack 1" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\Install\DotNet.cmd" /f

REG ADD %KEY%\080 /VE /D "MSN Messenger 7.0" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\Install\MSN.cmd" /f

REG ADD %KEY%\888 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\888 /V 1 /D "%systemdrive%\Install\RegTweaks.cmd" /f

REG ADD %KEY%\999 /VE /D "Cleaning Up" /f
REG ADD %KEY%\999 /V 1 /D "%systemdrive%\Install\CleanUp.cmd" /f

EXIT

And here's the command script for Daemon tools (Daemon.cmd) which resides in the $OEM$\$1\$Install\ Daemon\folder:

cmdow @ /HID
@echo off

START /WAIT %systemdrive%\Install\Daemon\daemon347.msi /passive /qn /norestart

EXIT

I have the feeling I'm missing something really silly. Hope anyone can help

cheers

Link to comment
Share on other sites


Well, just to let anyone looking at this know ...

The problem is solved if I install Daemon Tools later on. No idea why though. Current working RunOnceEx:

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\010 /VE /D "Microsoft .NET Framework" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\DotNet.cmd" /f

REG ADD %KEY%\020 /VE /D "Adobe Reader" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\AcrobatRdr70.cmd" /f

REG ADD %KEY%\030 /VE /D "Nero Burning ROM" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\Nero.cmd" /f

REG ADD %KEY%\040 /VE /D "Daemon Tools" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\Daemon.cmd" /f

REG ADD %KEY%\050 /VE /D "Windows Media Player" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\WMP.cmd" /f

REG ADD %KEY%\060 /VE /D "Mozilla Firefox" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\Install\Firefox.cmd" /f

REG ADD %KEY%\070 /VE /D "Java Runtime Enviroment" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\Install\J2RE.cmd"

REG ADD %KEY%\080 /VE /D "MSN Messenger" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\Install\MSN.cmd" /f

REG ADD %KEY%\888 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\888 /V 1 /D "%systemdrive%\Install\RegTweaks.cmd" /f

REG ADD %KEY%\999 /VE /D "Cleaning Up" /f
REG ADD %KEY%\999 /V 1 /D "%systemdrive%\Install\CleanUp.cmd" /f

EXIT

Everything else as before.

cheers

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