Jump to content

Multiple RunOnceEx Windows for Different Types


Recommended Posts

Let me explain:

I currently have a RunOnceEx.cmd that consists of 33 entries, and more to come.

I would like to try to let my DVD have a more "Professional" look by sorting out the types of software that I am installing (System-maintenance, Multimedia) and having a window for each of those which shows which software is being installed.

It will look like this:

1.jpg

2.jpg

3.jpg

etc...

I already found this thread: Too many entries in run once, and it had the posting in it that i need to call:

rundll32.exe iernonce.dll,RunOnceExProcess

It also said:

REG ADD %KEY%\999 /VE /D "Installing More Applications" /f
REG ADD %KEY%\999 /V 01 /D "%CDROM%\software\RunOneEx2.cmd" /f
REG ADD %KEY%\999 /V 02 /D "%CDROM%\software\rundll32.exe iernonce.dll,RunOnceExProcess" /f

But how does that exactly work? Do I need to clear the "RunOnceEx" key first?

Could somebody please explain?

<edit>added images of first try</edit>

Edited by Ben.Hahlen
Link to comment
Share on other sites


What you could do is run a cmd file at the end of each window.

REG ADD %KEY%\999 /V 01 /D "%CDROM%\software\RunOneEx2.cmd" /f
REG ADD %KEY%\999 /V 02 /D "%CDROM%\software\rundll32.exe iernonce.dll,RunOnceExProcess" /f

This shouldn't even show an entry, but will still run. The first will add entries to your runonceex entry, the second will start it back up. Once an entry is run, it gets deleted. Lets say you restart after running a command. It will pick up where it left off.

By keeping the number at 999, it should be significantly high that it won't be over written, and/or deleted. I've never tried running a command, and also over writing it, but it could only leave to trouble. If this doesn't work, just restart rather than run the rundll32 command.

Link to comment
Share on other sites

This will be kind of a long post, so i hope you'll read it all:

The problem is as follows:

The install runs my first RunOnceEx and the second one smoothly. But after the second one, I have to restart the computer to run the third one...

After that: Nothing.

No keys are being added or anything.

Could somebody maybe shed some light on this situation?

Thanks in advance.

These are my RunOnceEx-es:

(I left out the

@rem 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:
IF EXIST K:\CD.txt set CDROM=K:
IF EXIST L:\CD.txt set CDROM=L:
IF EXIST M:\CD.txt set CDROM=M:
IF EXIST N:\CD.txt set CDROM=N:
IF EXIST O:\CD.txt set CDROM=O:
IF EXIST P:\CD.txt set CDROM=P:
IF EXIST Q:\CD.txt set CDROM=Q:

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

parts...

RunOnceEx_1_utils.cmd (called from cmdlines.txt):

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

REG ADD %KEY%\001 /VE /D "Adobe Reader 6.0.1 + Update 6.0.2" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\001_utils\001_adobe\Adobe_Reader_601.msi /qb" /f
REG ADD %KEY%\001 /V 2 /D "%CDROM%\$oftware\001_utils\001_adobe\update\update602.msi /qb" /f

REG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.3.1.20" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\001_utils\002_nero\nero.exe /silent /noreboot /NO_UI /NOCANCEL /sn=xxx /write_sn" /f

REG ADD %KEY%\005 /VE /D "WinRAR 3.30" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\001_utils\003_winrar\winrar.exe /s" /f

REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_2_mm.cmd" /f
REG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

RunOnceEx_2_mm.cmd:

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

REG ADD %KEY%\001 /VE /D "WinAMP 5.05" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\002_multi_media\001_winamp\winamp.exe /S /f
REG ADD %KEY%\001 /V 2 /D "taskkill /F /IM winamp.exe" /f

REG ADD %KEY%\002 /VE /D "The Codecs 2.1" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\002_multi_media\002_codecs\codecs.exe /S /f

REG ADD %KEY%\003 /VE /D "Tag_Rename 3.0.6" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\002_multi_media\003_tag_rename\TagRenameSetup.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\003 /V 2 /D "sleep.exe 10" /f
REG ADD %KEY%\003 /V 3 /D "taskkill /F /IM TagRename.exe" /f
REG ADD %KEY%\003 /V 4 /D "REGEDIT /S %CDROM%\$oftware\002_multi_media\003_tag_rename\RegKey.reg" /f

REG ADD %KEY%\004 /VE /D "Quicktime 6.5.1" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\002_multi_media\004_quicktime\QuickTimeFullInstaller.exe" /f

REG ADD %KEY%\005 /VE /D "RealPlayer 10 Gold" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\002_multi_media\005_realplayer\RealPlayer10GOLD.exe -s" /f

REG ADD %KEY%\006 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\$oftware\002_multi_media\006_media_player\MP10Setup.exe /Q:A /C:\"setup_wm.exe /Q:A /R:N\"" /f

REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_3_system.cmd" /f
REG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

RunOnceEx_3_system.cmd:

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

REG ADD %KEY%\001 /VE /D "Diskeeper 8.0" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\003_system\001_diskeeper\Setup.exe /s /v/qb" /f
REG ADD %KEY%\001 /V 2 /D "%CDROM%\$oftware\003_system\001_diskeeper\DKProfessionalUpdate.exe /s /v/qb" /f

REG ADD %KEY%\002 /VE /D "Tweak UI Powertoy" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\003_system\002_tweakui\TweakUI.msi /qb" /f

REG ADD %KEY%\003 /VE /D "Everest Home Edition 1.10" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\003_system\003_everest\everest_home_110.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\004 /VE /D "AdAware SE Personal 1.04" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\003_system\004_adaware\aawsepersonal.exe /S" /f
REG ADD %KEY%\004 /V 2 /D "taskkill /F /IM Ad-Aware.exe" /f
REG ADD %KEY%\004 /V 3 /D "taskkill /F /IM hh.exe" /f

REG ADD %KEY%\005 /VE /D ".Net Framework 1.1" /f
REG ADD %KEY%\005 /V 1 /D "%sytemdrive%\install\003_system\005_DotNet_Frame\netfx.msi /qb" /f

REG ADD %KEY%\006 /VE /D "SpyBot Search & Destroy 1.3" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\$oftware\003_system\006_spybot\spybotsd13.exe /VERYSILENT /NOCANCEL /TASKBARHIDE /AUTOCLOSE" /f

REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_4_office.cmd" /f
REG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

RunOnceEx_4_office.cmd:

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

REG ADD %KEY% /V TITLE /D "Installing Office Software" /f

REG ADD %KEY%\001 /VE /D "Microsoft Office 2003 Professional + SP1" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\004_office\001_office\setup.exe TRANSFORMS=unattended.MST /qb-" /f

REG ADD %KEY%\002 /VE /D "Microsoft Office Proofingtools" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\004_office\002_proof_tools\PTKSetup.exe PIDKEY=xxx /qb" /f

REG ADD %KEY%\003 /VE /D "Microsoft OneNote" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\004_office\003_one_note\setup.exe /qb-" /f

REG ADD %KEY%\004 /VE /D "Personal Folders Backup" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\004_office\004_pf_backup\pfbackup.msi /qb" /f

REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_5_inet.cmd" /f
REG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

RunOnceEx_5_inet.cmd:

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

REG ADD %KEY%\001 /VE /D "MSN Messenger 6.2.0137" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\005_internet\001_msn\MsnMsgs.msi /qb" /f

REG ADD %KEY%\002 /VE /D "Messenger Plus 3.01.94" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\005_internet\002_msgplus\MsgPlus-301.exe /silentinstallnosponsor" /f
REG ADD %KEY%\002 /V 2 /D "REGEDIT /S %CDROM%\$oftware\005_internet\002_msgplus\startmsgplus.reg" /f

REG ADD %KEY%\003 /VE /D "MS Java VM Build 3810" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\005_internet\003_ms_java\MSJavaVM_3810.exe" /f

REG ADD %KEY%\004 /VE /D "DC++ 0.401" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\005_internet\004_dc++\dc++0401.exe /S" /f

REG ADD %KEY%\005 /VE /D "Macromedia Dreamweaver MX" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\005_internet\005_dreamweaver\Setup.exe -s" /f
REG ADD %KEY%\005 /V 3 /D "taskkill /F /IM iexplore.exe" /f

REG ADD %KEY%\006 /VE /D "SmartFTP 1.981" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\$oftware\005_internet\006_smartftp\SmartFTP.msi TRANSFORMS=unattended.mst /qb-" /f

REG ADD %KEY%\999 /V 1 /D "%CDROM%\$oftware\RunOnceEx_6_pers.cmd" /f
REG ADD %KEY%\999 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

RunOnceEx_6_pers.cmd adds the tweaks and restarts the system.

<edit>updated version</edit>

Link to comment
Share on other sites

I would open regedit to see if anything is in there at all. Try running the cmd file, then opening regedit to see if it is putting things in properly.

You could always add

REG ADD %KEY%\999 /V 03 /D "regedit.exe" /f

to look at the code right after you put it in.

Or maybe windows is just getting tired of running your runonceex :P

Link to comment
Share on other sites

Alright, so I've tested from the hard-drive, at least, the RunOnceEx-es are being called from the harddrive...

I don't see why it should work from the hard-drive, but not from CD-ROM...

Now it goes up to the third one, adds the keys for the fourth one, but doesn't run it.

After I restart, the fourth one runs, but no keys are added at the end...

This is really getting annoying...

Someone has more ideas??? Please?

Link to comment
Share on other sites

Looks like your problem is the 099 key in the files. It runs one, then calls the next one without exiting. After the restart, or something interrupts it, it deletes the key. That's why it won't load the next one. Easiest way around this is start at a high number, and for the next file, decrement.

first file 099

second 098

so on...

Link to comment
Share on other sites

Looks like your problem is the 099 key in the files.  It runs one, then calls the next one without exiting.  After the restart, or something interrupts it, it deletes the key.  That's why it won't load the next one.  Easiest way around this is start at a high number, and for the next file, decrement.

first file 099

second 098

so on...

Thanks man.

That worked out perfectly :thumbup:thumbup

I'll post my completed RunOnceEx-es here soon for reference

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