MSFN Forum: Multiple RunOnceEx Windows for Different Types - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple RunOnceEx Windows for Different Types Rate Topic: -----

#1 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

  Posted 06 September 2004 - 03:36 PM

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:
Posted Image

Posted Image

Posted Image

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>

This post has been edited by Ben.Hahlen: 13 June 2008 - 06:31 AM



#2 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 06 September 2004 - 06:17 PM

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.

#3 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

Posted 07 September 2004 - 05:53 AM

Thanks, I'm trying to make it work now...
I'll post some screenshots if it works (or doesn't work ;))

#4 User is offline   glent 

  • Tpyo Spceialist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,041
  • Joined: 16-August 04

  Posted 07 September 2004 - 06:20 AM

hmm i have the same problem ...to may apps.looking forward to your response

#5 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

  Posted 07 September 2004 - 08:35 AM

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>

#6 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 07 September 2004 - 08:53 AM

could you try testing on your hard drive, instead of cdrom? ie using $1 folder...and report back if that works...because as i see it, that would have to be about the only thing messing it up...

#7 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 07 September 2004 - 09:00 AM

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

#8 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

Posted 07 September 2004 - 01:15 PM

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?

#9 User is offline   gunsmokingman 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,991
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2004 - 01:47 PM

"%CDROM%\$oftware\
Try This
"%CDROM%Software\


#10 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

Posted 07 September 2004 - 01:51 PM

I don't think it has to do with the "$oftware"-folder name, b/c it works for the first three.
Somehow, it seems like a limitation of the RunOnceEx-key or something.
I really have no clue what to do next... :unsure:

#11 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 07 September 2004 - 02:58 PM

I meant move the software to the hard drive, not the runonceex.cmd's...I think after a while your cdrom craps out on ya, but youll have to moce your software to $OEM$\$1 folder, and change your runonceex.cmd's

#12 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 07 September 2004 - 03:05 PM

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

#13 User is offline   Ben.Hahlen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 22-February 04

Posted 11 September 2004 - 03:21 PM

sleepnmojo, on Sep 7 2004, 10:05 PM, said:

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

#14 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 11 September 2004 - 03:44 PM

This has also been addressed -

-Here

And

-Here

heh lots of people playing around with the idea. :)

#15 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 11 September 2004 - 06:03 PM

Nologic, on Sep 11 2004, 03:44 PM, said:

This has also been addressed -

-Here

And

-Here

heh lots of people playing around with the idea. :)

Haha. The first one references the second one. The second one references this one (by me). Which is where Coolsights2000 got all his info before taking credit for it all.

#16 User is offline   Coolsights2000 

  • Member
  • PipPip
  • Group: Members
  • Posts: 243
  • Joined: 11-August 04

Posted 11 September 2004 - 08:01 PM

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


Quote

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


#17 User is offline   Stinger12348 

  • Junior
  • Pip
  • Group: Members
  • Posts: 78
  • Joined: 31-July 03

Posted 11 September 2004 - 08:21 PM

if its a batch file, at the point you want to break it up, can you just use 'start /wait rundll32.exe iernonce.dll,RunOnceExProcess' where the start /wait part makes it wait for that command to finish before continuing? but I use an .inf to do it so I don't know.

#18 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 12 September 2004 - 12:09 AM

Coolsights2000, on Sep 11 2004, 08:01 PM, said:

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


Quote

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.

#19 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 12 September 2004 - 06:34 AM

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.

#20 User is offline   russ9898 

  • Group: Members
  • Posts: 7
  • Joined: 24-September 04

Posted 25 September 2004 - 05:58 PM

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

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy