Jump to content

RunOnceEx Problems


Recommended Posts

How coem my runonceex executes itself at the 12min mark of windows setup instead of on first login????

heres my runonceex.cmd code

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Productivity Software - Step 1 of 6" /f

REG ADD %KEY%\005 /VE /D "MS Office 2003 Pro" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

Link to comment
Share on other sites


ok but iam trying to create several differnt windows for the pgms.... should i just remove the last line??? here my FULL code... to the point i am at... (not finished)

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Productivity Software - Step 1 of 6" /f

REG ADD %KEY%\005 /VE /D "MS Office 2003 Pro" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\010 /VE /D "MS Frontpage 2003" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\Office2003\frontpage\setup.exe TRANSFORMS=fpgUnattended.MST /qb-" /f

REG ADD %KEY%\015 /VE /D "MS Visio 2003 Pro" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Office2003\visio\setup.exe TRANSFORMS=visioUnattended.MST /qb-" /f

REG ADD %KEY%\020 /VE /D "MS Onenote 2003" /f

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\Office2003\onenote\setup.exe TRANSFORMS=onoteUnattended.MST /qb-" /f

REG ADD %KEY%\025 /VE /D "MS Project 2003" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\Office2003\project\setup.exe TRANSFORMS=projectUnattended.MST /qb-" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing ATI Software - Step 2 of " /f

REG ADD %KEY%\030 /VE /D "ATI Catalyst Drivers 4.12" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\ATI\Driver\SETUP.EXE -S" /f

REG ADD %KEY%\035 /VE /D "ATI Catalyst Control Panel" /f

REG ADD %KEY%\035 /V 1 / D "%systemdrive%\INSTALL\APPLICATIONS\ATI\CP\SETUP.EXE -S" /f

REG ADD %KEY%\040 /VE /D "ATI WDM DRIVERS" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\ATI\WDM\SETUP.EXE -S" /f

REG ADD %KEY%\045 /VE /D "ATI DAO" /f

REG ADD %KEY%\045 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\ATI\DAO\SETUP.EXE" /f

REG ADD %KEY%\050 /VE /D "ATI MMC 9.0" /f

REG ADD %KEY%\050 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\ATI\MMC\SETUP.EXE -S" /f

REG ADD %KEY%\055 /VE /D "ATI Remote Wonder 2.3" /f

REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\ATI\RW\SETUP.EXE -S" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing Device Drivers - Step 3 of " /f

REG ADD %KEY%\060 /VE /D "Audio Drivers" /f

REG ADD %KEY%\060 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\Drivers\Sound\SETUP.EXE -S" /f

REG ADD %KEY%\065 /VE /D "Keyboard Drivers" /f

REG ADD %KEY%\065 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\Drivers\Keyboard\setup\SETUP.EXE -S" /f

REG ADD %KEY%\070 /VE /D "Network Interafce Card Drivers" /f

REG ADD %KEY%\070 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\Drivers\NIC\SETUP.EXE -S" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing Security Software - Step 4 of " /f

REG ADD %KEY%\075 /VE /D "Norton Systemworks 2003" /f

REG ADD %KEY%\075 /V 1 /D "%systemdrive%\INSTALL\APPLICATIONS\Systemworks2003\SETUP.EXE /qn /Reboot=Supress" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing System Tools & Software - Step 2 of" /f

REG ADD %KEY%\080 /VE /D "Win Zip 9.0" /f

REG ADD %KEY%\080 /V 1 /D "%systemdrive%\Program Files\WinZip\winzip32.exe /noqp /notip /autoinstall" /f

REG ADD %KEY%\085 /VE /D "Win Rar" /f

REG ADD %KEY%\085 /V 1 /D " " /f

REG ADD %KEY%\090 /VE /D "Win Iso" /f

REG ADD %KEY%\090 /V 1 /D " " /f

REG ADD %KEY%\100 /VE /D "Windows ZP Powertoys" /f

REG ADD %KEY%\100 /V 1 /D " " /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

exit

Link to comment
Share on other sites

ok ya but im just tryin to figure out why it is executing itself at the 12 min mark of setup instead of on first logon......??????

i am followign those guides to make my multiple windows work (which they do) the problem is that my runonceex.cmd is executign itseld and tryin to run through each of those lines at the 12 min mark of setup

Link to comment
Share on other sites

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

Mine Works Perfect and I dont Have That line In Mine What So Ever

cmdow @ /HID
@echo off

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i

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

REG ADD %KEY% /V TITLE /D "The Install Section" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\010 /VE /D "Installing Extra Codecs" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%Apps\ACEMCP591\ACEMCP591PRO.EXE /silent /v/qb  " /f

REG ADD %KEY%\015 /VE /D "Alcohol120" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %CDROM%Apps\Alcohol\TestAlcohol.reg" /f
REG ADD %KEY%\015 /V 2 /D "%CDROM%Apps\Alcohol\setup.msi /qb/promtrestart" /f

REG ADD %KEY%\020 /VE /D "Axialis IconWorkshop v5.03" /f
REG ADD %KEY%\020 /V 1 /D "REGEDIT /S %CDROM%Apps\Axialis\HK_CU_RegAxialis.reg" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%Apps\Axialis\Axialis.exe /s /v/qn" /f

REG ADD %KEY%\025 /VE /D "Axialis Notes" /f
REG ADD %KEY%\025 /V 2 /D "%CDROM%Apps\Axialis\Axialis.TXT /NOTEPAD.EXE" /f

REG ADD %KEY%\030 /VE /D "BitTorrent" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%Apps\BitTorrent\BitTorrent-3.4.2.exe /s /v/qn" /f

REG ADD %KEY%\035 /VE /D "FlashPlayer7" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%Apps\Flash\FlsPlyr7Inst.exe /s /v/qn" /

REG ADD %KEY%\045 /VE /D "MicroAngelo57" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%Apps\MicroAngelo\MicroAngelo57.exe /silent /v/qb" /f

REG ADD %KEY%\047 /VE /D "Mozilla" /f
REG ADD %KEY%\047 /V 1 /D "%CDROM%Apps\Mozilla\Mozilla.exe" /f

REG ADD %KEY%\050 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%Apps\MsnMsgs\MsnMsgs.msi /qr" /f

REG ADD %KEY%\054 /VE /D "NERO63115" /f
REG ADD %KEY%\054 /V 1 /D "%CDROM%Apps\Nero\NERO63115.EXE /noreboot /Yes_ui /sn=ABCD-EFGH-IJKL-MNOP-QRST-1234 /write_sn" /f

REG ADD %KEY%\063 /VE /D "ShockWave" /f
REG ADD %KEY%\063 /V 1 /D "%CDROM%Apps\ShockWave\SckWveInstFull.exe /s /v/qn" /f

REG ADD %KEY%\065 /VE /D "Spybot S&D 1.3" /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%Apps\Spybot\spybotsd13.exe /silent" /f

REG ADD %KEY%\075 /VE /D "VXPv713" /f
REG ADD %KEY%\075 /V 1 /D "REGEDIT %CDROM%Apps\VoXP\voptxp.reg" /f
REG ADD %KEY%\075 /V 2 /D "%CDROM%Apps\VoXP\VXPv713.exe /s /v/qn" /f

REG ADD %KEY%\080 /VE /D "VXP713 Update" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%Apps\VoXP\VXP713Up.exe /s /v/qn" /f

REG ADD %KEY%\083 /VE /D "Winamp5" /f
REG ADD %KEY%\083 /V 1 /D "%CDROM%Apps\Winamp\Winamp5.msi Xname=Spad Xkey=XXXXX-XXXXX-XXXXX-XXXXX Xagent=0 Xlibrary=0 Xintex=1 Xmodernskin=1 Xaudio=1 Xvideo=0 Xvisual=0 Xextra=0 Xregopt=0 /qr" /f

REG ADD %KEY%\090 /VE /D "Wrar320ce" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%Apps\WinRar\wrar320ce.exe /silent /v/qn" /f

REG ADD %KEY%\170 /VE /D "Preparing Final Clean up ..." /f
REG ADD %KEY%\170 /V 1 /D "%CDROM%Apps\Cleanup.exe" /f

EXIT

Try removing this line from yours, I counted there was 4 calls to this.

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

Link to comment
Share on other sites

Basically what I did was made my last window for the complicated appz that couldn't be installed at the T-13 stage.

Office of course being one of them. You must have been getting the write to registery error huh?

The good news is you can load a few of these at the end if you change the resolution right before hand!

REG ADD %KEY%\090 /VE /D "WinRAR 3.10" /f
REG ADD %KEY%\090 /V 1 /D "%SystemDrive%\Install\WinRAR\WinRAR_3.10_CE.exe -s" /f

REG ADD %KEY%\095 /VE /D "Continue to List 4 of 4" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing After T-13 Applications" /f

REG ADD %KEY%\100 /VE /D "Changing Resolution" /f
REG ADD %KEY%\100 /V 1 /D "%SystemDrive%\Install\Res.cmd" /f

REG ADD %KEY%\110 /VE /D "Office 2003 Pro" /f
REG ADD %KEY%\110 /V 1 /D "%SystemDrive%\Install\Office\Office2003\PRO11.MSI /QB" /f
REG ADD %KEY%\110 /V 2 /D "%SystemDrive%\Install\Office\Frontpage2003\FP11.MSI /QB" /f
REG ADD %KEY%\110 /V 3 /D "%SystemDrive%\Install\Office\Project2003\PRJPROE.MSI /QB" /f
REG ADD %KEY%\110 /V 4 /D "%SystemDrive%\Install\Office\OneNote2003\ONOTE11.MSI /QB" /f
REG ADD %KEY%\110 /V 5 /D "%SystemDrive%\Install\Office\Visio2003\VISPRO.MSI /QB" /f

etc...

Trial and error as to what will need to be on the last list.

Cheers

Wisc

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