Ben.Hahlen Posted September 6, 2004 Share Posted September 6, 2004 (edited) 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: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,RunOnceExProcessIt also said:REG ADD %KEY%\999 /VE /D "Installing More Applications" /fREG ADD %KEY%\999 /V 01 /D "%CDROM%\software\RunOneEx2.cmd" /fREG ADD %KEY%\999 /V 02 /D "%CDROM%\software\rundll32.exe iernonce.dll,RunOnceExProcess" /fBut 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 June 13, 2008 by Ben.Hahlen Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 7, 2004 Share Posted September 7, 2004 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" /fREG ADD %KEY%\999 /V 02 /D "%CDROM%\software\rundll32.exe iernonce.dll,RunOnceExProcess" /fThis 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 More sharing options...
Ben.Hahlen Posted September 7, 2004 Author Share Posted September 7, 2004 Thanks, I'm trying to make it work now...I'll post some screenshots if it works (or doesn't work ) Link to comment Share on other sites More sharing options...
glent Posted September 7, 2004 Share Posted September 7, 2004 hmm i have the same problem ...to may apps.looking forward to your response Link to comment Share on other sites More sharing options...
Ben.Hahlen Posted September 7, 2004 Author Share Posted September 7, 2004 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 offIF 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\RunOnceExparts...RunOnceEx_1_utils.cmd (called from cmdlines.txt):REG ADD %KEY% /V TITLE /D "Installing Utilities" /fREG ADD %KEY%\001 /VE /D "Adobe Reader 6.0.1 + Update 6.0.2" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\001_utils\001_adobe\Adobe_Reader_601.msi /qb" /fREG ADD %KEY%\001 /V 2 /D "%CDROM%\$oftware\001_utils\001_adobe\update\update602.msi /qb" /fREG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.3.1.20" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\001_utils\002_nero\nero.exe /silent /noreboot /NO_UI /NOCANCEL /sn=xxx /write_sn" /fREG ADD %KEY%\005 /VE /D "WinRAR 3.30" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\001_utils\003_winrar\winrar.exe /s" /fREG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_2_mm.cmd" /fREG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fEXITRunOnceEx_2_mm.cmd:REG ADD %KEY% /V TITLE /D "Installing Multimedia Applications" /fREG ADD %KEY%\001 /VE /D "WinAMP 5.05" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\002_multi_media\001_winamp\winamp.exe /S /fREG ADD %KEY%\001 /V 2 /D "taskkill /F /IM winamp.exe" /fREG ADD %KEY%\002 /VE /D "The Codecs 2.1" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\002_multi_media\002_codecs\codecs.exe /S /fREG ADD %KEY%\003 /VE /D "Tag_Rename 3.0.6" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\002_multi_media\003_tag_rename\TagRenameSetup.exe /VERYSILENT /SP-" /fREG ADD %KEY%\003 /V 2 /D "sleep.exe 10" /fREG ADD %KEY%\003 /V 3 /D "taskkill /F /IM TagRename.exe" /fREG ADD %KEY%\003 /V 4 /D "REGEDIT /S %CDROM%\$oftware\002_multi_media\003_tag_rename\RegKey.reg" /fREG ADD %KEY%\004 /VE /D "Quicktime 6.5.1" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\002_multi_media\004_quicktime\QuickTimeFullInstaller.exe" /fREG ADD %KEY%\005 /VE /D "RealPlayer 10 Gold" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\002_multi_media\005_realplayer\RealPlayer10GOLD.exe -s" /fREG ADD %KEY%\006 /VE /D "Windows Media Player 10" /fREG 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\"" /fREG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_3_system.cmd" /fREG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fEXITRunOnceEx_3_system.cmd:REG ADD %KEY% /V TITLE /D "Installing System-Related Applications" /fREG ADD %KEY%\001 /VE /D "Diskeeper 8.0" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\003_system\001_diskeeper\Setup.exe /s /v/qb" /fREG ADD %KEY%\001 /V 2 /D "%CDROM%\$oftware\003_system\001_diskeeper\DKProfessionalUpdate.exe /s /v/qb" /fREG ADD %KEY%\002 /VE /D "Tweak UI Powertoy" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\003_system\002_tweakui\TweakUI.msi /qb" /fREG ADD %KEY%\003 /VE /D "Everest Home Edition 1.10" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\003_system\003_everest\everest_home_110.exe /VERYSILENT /SP-" /fREG ADD %KEY%\004 /VE /D "AdAware SE Personal 1.04" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\003_system\004_adaware\aawsepersonal.exe /S" /fREG ADD %KEY%\004 /V 2 /D "taskkill /F /IM Ad-Aware.exe" /fREG ADD %KEY%\004 /V 3 /D "taskkill /F /IM hh.exe" /fREG ADD %KEY%\005 /VE /D ".Net Framework 1.1" /fREG ADD %KEY%\005 /V 1 /D "%sytemdrive%\install\003_system\005_DotNet_Frame\netfx.msi /qb" /fREG ADD %KEY%\006 /VE /D "SpyBot Search & Destroy 1.3" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\$oftware\003_system\006_spybot\spybotsd13.exe /VERYSILENT /NOCANCEL /TASKBARHIDE /AUTOCLOSE" /fREG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_4_office.cmd" /fREG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fEXITRunOnceEx_4_office.cmd:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Office Software" /fREG ADD %KEY%\001 /VE /D "Microsoft Office 2003 Professional + SP1" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\004_office\001_office\setup.exe TRANSFORMS=unattended.MST /qb-" /fREG ADD %KEY%\002 /VE /D "Microsoft Office Proofingtools" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\004_office\002_proof_tools\PTKSetup.exe PIDKEY=xxx /qb" /fREG ADD %KEY%\003 /VE /D "Microsoft OneNote" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\004_office\003_one_note\setup.exe /qb-" /fREG ADD %KEY%\004 /VE /D "Personal Folders Backup" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\004_office\004_pf_backup\pfbackup.msi /qb" /fREG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\RunOnceEx_5_inet.cmd" /fREG ADD %KEY%\099 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fEXITRunOnceEx_5_inet.cmd:REG ADD %KEY% /V TITLE /D "Installing Internet Applications" /fREG ADD %KEY%\001 /VE /D "MSN Messenger 6.2.0137" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\$oftware\005_internet\001_msn\MsnMsgs.msi /qb" /fREG ADD %KEY%\002 /VE /D "Messenger Plus 3.01.94" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\$oftware\005_internet\002_msgplus\MsgPlus-301.exe /silentinstallnosponsor" /fREG ADD %KEY%\002 /V 2 /D "REGEDIT /S %CDROM%\$oftware\005_internet\002_msgplus\startmsgplus.reg" /fREG ADD %KEY%\003 /VE /D "MS Java VM Build 3810" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\$oftware\005_internet\003_ms_java\MSJavaVM_3810.exe" /fREG ADD %KEY%\004 /VE /D "DC++ 0.401" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\$oftware\005_internet\004_dc++\dc++0401.exe /S" /fREG ADD %KEY%\005 /VE /D "Macromedia Dreamweaver MX" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\$oftware\005_internet\005_dreamweaver\Setup.exe -s" /fREG ADD %KEY%\005 /V 3 /D "taskkill /F /IM iexplore.exe" /fREG ADD %KEY%\006 /VE /D "SmartFTP 1.981" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\$oftware\005_internet\006_smartftp\SmartFTP.msi TRANSFORMS=unattended.mst /qb-" /fREG ADD %KEY%\999 /V 1 /D "%CDROM%\$oftware\RunOnceEx_6_pers.cmd" /fREG ADD %KEY%\999 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fEXITRunOnceEx_6_pers.cmd adds the tweaks and restarts the system.<edit>updated version</edit> Link to comment Share on other sites More sharing options...
evilvoice Posted September 7, 2004 Share Posted September 7, 2004 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... Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 7, 2004 Share Posted September 7, 2004 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 addREG ADD %KEY%\999 /V 03 /D "regedit.exe" /fto look at the code right after you put it in.Or maybe windows is just getting tired of running your runonceex Link to comment Share on other sites More sharing options...
Ben.Hahlen Posted September 7, 2004 Author Share Posted September 7, 2004 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 More sharing options...
gunsmokingman Posted September 7, 2004 Share Posted September 7, 2004 "%CDROM%\$oftware\ Try This "%CDROM%Software\ Link to comment Share on other sites More sharing options...
Ben.Hahlen Posted September 7, 2004 Author Share Posted September 7, 2004 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... Link to comment Share on other sites More sharing options...
evilvoice Posted September 7, 2004 Share Posted September 7, 2004 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 Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 7, 2004 Share Posted September 7, 2004 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 099second 098so on... Link to comment Share on other sites More sharing options...
Ben.Hahlen Posted September 11, 2004 Author Share Posted September 11, 2004 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 099second 098so on...Thanks man.That worked out perfectly I'll post my completed RunOnceEx-es here soon for reference Link to comment Share on other sites More sharing options...
Nologic Posted September 11, 2004 Share Posted September 11, 2004 This has also been addressed --HereAnd-Hereheh lots of people playing around with the idea. Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 12, 2004 Share Posted September 12, 2004 This has also been addressed --HereAnd-Hereheh 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now