Jump to content

Multiple RunOnceEx Windows for Different Types


Recommended Posts

I put this back in a post so I'm trying to get all the credit!!!!!!!

I just used what you all posted and added to it,,,

The other poster started refering to it as the coolsights way,,, LOL

Hi! All!

You all gave me something to play with so here is the results.....

Ok I figured it out you have to set it up like a nested for -- next loop BUT only on the bottom....

Each time you call the rundll32.exe iernonce.dll,RunOnceExProcess it opens a new windows each window is on top of the last window.... etc etc

Link to comment
Share on other sites


I put this back in a post so I'm trying to get all the credit!!!!!!!

I just used what you all posted and added to it,,,

The other poster started refering to it as the coolsights way,,, LOL

Hi! All!

You all gave me something to play with so here is the results.....

Ok I figured it out you have to set it up like a nested for -- next loop BUT only on the bottom....

Each time you call the rundll32.exe iernonce.dll,RunOnceExProcess it opens a new windows each window is on top of the last window.... etc etc

I don't mind, I consider you a contributing member, unlike most members, which is why I don't have a problem. You also made an effort to understand it, unlike most members, who just ask silly questions rather than think first. If you were one of those people, I'd say something, but your not, so its cool.

Link to comment
Share on other sites

well, i guess i should come out and say why I called it coolsights method...it was because we were talkin in the post and nologic, I believe, was talking about this other method, so for people who were reading the thread, I referred to it as coolsights method, so they would know which one I was talking about...coolsights vs nologic's...so I guess its my fault it was referred as coolsights method...but in all honesty, I only referred to it that way because I wanted to make sure other knew which version I was talking about.

Link to comment
Share on other sites

  • 2 weeks later...

hey anychance of seeing these runonce scripts please? would be very interested to see them as i want to do a custom windows install and have leart alot on the subject but feel seeing these and how youve done it exactly would benifit me greatly

cheers, russ

Link to comment
Share on other sites

hey anychance of seeing these runonce scripts please? would be very interested to see them as i want to do a custom windows install and have leart alot on the subject but feel seeing these and how youve done it exactly would benifit me greatly

cheers, russ

Go to the first page of this thread and scroll down.

Link to comment
Share on other sites

See Ben.Hahlen's long post above.

Why it isn't working is because:

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

(one of the example CMD files) that should have the last set of keys (the 99 numbered thing is removed) this way:

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

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

I mean, no need to use the runonce keys to run themselves. The CMD will run, and the runonce gets executed right then and there, before moving on to the next CMD.

Link to comment
Share on other sites

I mean, no need to use the runonce keys to run themselves. The CMD will run, and the runonce gets executed right then and there, before moving on to the next CMD. 

The 1st 999 line sets the path to the next file while the 2nd one runs it no?

Please explain cause im using this method, starting at 999 decrementing for each file, it works but the runonceex windows do not close when they are done

If I delete the last lines...

then how is windows gonna know what it must run and from where? Should I put all the RunOnceEx in the same folder as cmdlines.txt?

Link to comment
Share on other sites

This is how it works....

You run the .CMDs of above (with the modification suggested in previous post). But instead of running those CMDs in cmdlines.txt, run those from GUIrunOnce (sequentially, one after another, however you want it). So what happens now is that the RunOnce keys get added... and get executed as well - right at that time itself (without reboot). After the first CMD has finished executing, the second runs importing the keys and then executing them.... and so on.

For example, your winnt.sif will have this section:

[GuiRunOnce]
  %whatever%\path\RunOnceEx_1_utils.cmd
  %whatever%\path\RunOnceEx_2_mm.cmd

This will run the runonceEx_1 CMD at first-logon (instead of having to do it at cmdlines). The contents of the CMD file are as follows:

@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

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

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

The code for the other CMDs is similar too.

So now, what happens is described at beginning of this post. Try running the CMD in normal windows itself (no need to carry it out during unattended just to test) to understand this post fully. All the best, not very difficult at all.... and simpler than other ways!

Link to comment
Share on other sites

could some1 tell me what is wrong with this code please? i get an invalid key error :(

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

REG ADD %KEY%\001 /VE /D "Tunespark 1.2" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\001_utils\003_tunespark\setup.exe /VERYSILENT /SP- /NORESTART" /f

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

REG ADD %KEY%\003 /VE /D "MP3 Tag 2.25" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\002_multi_media\003_mp3tag\Setup.exe /S" /f

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

REG ADD %KEY%\005 /VE /D "CoverXP" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\001_utils\004_coverxp\Setup.exe /S" /f

REG ADD %KEY%\006 /VE /D "WinAMP 5.05" /f
REG ADD %KEY%\006 /V 2 /D "%systemdrive%\Software\002_multi_media\006_winamp\setup.msi /qb INI="%systemdrive%\Software\002_multi_media\006_winamp\winamp.ini"" /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

thanks in advance, russ

Link to comment
Share on other sites

You have used "KEY" and "CDROM" variables, but you haven't defined them. Which is why.... don't bother with RunOnceEX until everything else on your CD works fine.

What's wrong with using plain batch-files (CMDs with "start /wait ---- " sort of commands) for your installs ?

If how it looks is a concern, remember that "how it looks" factor comes after "does it work at all".

Link to comment
Share on other sites

is this more like what it should be?

cmdow @ /HID
@echo off

IF EXIST D:\win51ip.SP2 set XPCD=D:
IF EXIST E:\win51ip.SP2 set XPCD=E:
IF EXIST F:\win51ip.SP2 set XPCD=F:
IF EXIST G:\win51ip.SP2 set XPCD=G:
IF EXIST H:\win51ip.SP2 set XPCD=H:
IF EXIST I:\win51ip.SP2 set XPCD=I:
IF EXIST J:\win51ip.SP2 set XPCD=J:
IF EXIST Z:\win51ip.SP2 set XPCD=Z:
IF EXIST X:\win51ip.SP2 set XPCD=X:
IF EXIST V:\win51ip.SP2 set XPCD=V:
IF EXIST N:\win51ip.SP2 set XPCD=N:
IF EXIST M:\win51ip.SP2 set XPCD=M:
IF EXIST L:\win51ip.SP2 set XPCD=L:
IF EXIST K:\win51ip.SP2 set XPCD=K:
IF EXIST S:\win51ip.SP2 set XPCD=S:
IF EXIST Q:\win51ip.SP2 set XPCD=Q:
IF EXIST W:\win51ip.SP2 set XPCD=W:
IF EXIST R:\win51ip.SP2 set XPCD=R:
IF EXIST T:\win51ip.SP2 set XPCD=T:
IF EXIST Y:\win51ip.SP2 set XPCD=Y:
IF EXIST U:\win51ip.SP2 set XPCD=U:
IF EXIST I:\win51ip.SP2 set XPCD=I:
IF EXIST O:\win51ip.SP2 set XPCD=O:
IF EXIST P:\win51ip.SP2 set XPCD=P:



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

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

REG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.3.1.25" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\002_multi_media\006_winamp\001_utils\001_nero\Setup.exe /silent /noreboot /NO_UI /NOCANCEL /sn=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /write_sn" /f

REG ADD %KEY%\005 /VE /D "WinRAR 3.40" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\001_utils\002_winrar\Setup.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

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