Jump to content

Multiple guirunonce.... How to run one at a time?


Mikep7779

Recommended Posts


ender341's right, I have three reboots and three GUIRUNONCE files. You run your first .cmd from cmdlines.txt and then all the others from successive .cmd files. For instance, my first is Pass1.cmd which is run from cmdlines.txt. My second .cmd, Pass2.cmd, is run from Pass1.cmd using the following lines (this includes the reboot as well):

REG ADD %KEY%\046 /VE /D "Rebooting...(Pass 1)" /f

REG ADD %KEY%\046 /V 1 /D "\"%CDROM%\$OEM$\Pass 2.cmd\"" /f

REG ADD %KEY%\046 /V 2 /D "shutdown.exe -r -f -t 0 -c \"Windows XP will now restart in 1 minute...\"" /f

My Pass3.cmd is added into the Pass2.cmd file in the same way. Works for me.

SRJ.

Link to comment
Share on other sites

hmm actually you can have multiple ones if you like...the issue is getting the RunOnce key to execute with out having to reboot...this can be done tho...and has been covered many a time with in these forums.

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

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

rundll32.exe iernonce.dll,RunOnceExProcess

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

REG ADD %KEY%\005 /VE /D "QuickTime 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /f

REG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /f

REG ADD %KEY%\015 /VE /D "PSPad" /f
...

rundll32.exe iernonce.dll,RunOnceExProcess

The important part is:

rundll32.exe iernonce.dll,RunOnceExProcess

Since the base cmd file will populate the RunOnce reg entry...and the line above will then force every thing thats been entered into the entry to then run at that point.

Link to comment
Share on other sites

hmm actually you can have multiple ones if you like...the issue is getting the RunOnce key to execute with out having to reboot...this can be done tho...and has been covered many a time with in these forums.

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 8" /f
[b]...
[/b]
rundll32.exe iernonce.dll,RunOnceExProcess

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

REG ADD %KEY%\005 /VE /D "QuickTime 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /f

REG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /f

REG ADD %KEY%\015 /VE /D "PSPad" /f
[b]...[/b]

rundll32.exe iernonce.dll,RunOnceExProcess

The important part is:

rundll32.exe iernonce.dll,RunOnceExProcess

Since the base cmd file will populate the RunOnce reg entry...and the line above will then force every thing thats been entered into the entry to then run at that point.

Are the ... important?

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