Coolsights2000 Posted September 12, 2004 Share Posted September 12, 2004 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,,, LOLHi! 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 More sharing options...
Stinger12348 Posted September 12, 2004 Share Posted September 12, 2004 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. Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 12, 2004 Share Posted September 12, 2004 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,,, LOLHi! 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 More sharing options...
evilvoice Posted September 12, 2004 Share Posted September 12, 2004 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 More sharing options...
russ9898 Posted September 25, 2004 Share Posted September 25, 2004 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 greatlycheers, russ Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 26, 2004 Share Posted September 26, 2004 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 greatlycheers, russGo to the first page of this thread and scroll down. Link to comment Share on other sites More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 See Ben.Hahlen's long post above.Why it isn't working is because: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" /fEXIT(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" /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\"" /frundll32.exe iernonce.dll,RunOnceExProcessEXITI 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 More sharing options...
Thauzar Posted September 26, 2004 Share Posted September 26, 2004 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 More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 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.cmdThis 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 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\RunOnceExREG 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" /frundll32.exe iernonce.dll,RunOnceExProcessEXITThe 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 More sharing options...
Thauzar Posted September 26, 2004 Share Posted September 26, 2004 Thanks, gonna try it now! Link to comment Share on other sites More sharing options...
russ9898 Posted September 26, 2004 Share Posted September 26, 2004 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" /fREG ADD %KEY%\001 /VE /D "Tunespark 1.2" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\001_utils\003_tunespark\setup.exe /VERYSILENT /SP- /NORESTART" /fREG ADD %KEY%\002 /VE /D "The Codecs 2.4" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\002_multi_media\002_codecs\codecs.exe /S /fREG ADD %KEY%\003 /VE /D "MP3 Tag 2.25" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\002_multi_media\003_mp3tag\Setup.exe /S" /fREG ADD %KEY%\004 /VE /D "Windows Media Player 10" /fREG 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\"" /fREG ADD %KEY%\005 /VE /D "CoverXP" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\001_utils\004_coverxp\Setup.exe /S" /fREG ADD %KEY%\006 /VE /D "WinAMP 5.05" /fREG 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"" /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" /fEXITthanks in advance, russ Link to comment Share on other sites More sharing options...
prathapml Posted September 26, 2004 Share Posted September 26, 2004 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 More sharing options...
russ9898 Posted September 26, 2004 Share Posted September 26, 2004 is this more like what it should be?cmdow @ /HID@echo offIF 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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Utilities" /fREG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.3.1.25" /fREG 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" /fREG ADD %KEY%\005 /VE /D "WinRAR 3.40" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\001_utils\002_winrar\Setup.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" /fEXIT Link to comment Share on other sites More sharing options...
Thauzar Posted September 26, 2004 Share Posted September 26, 2004 set tagfile=\WIN51for %%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:%tagfile%" set CDDRIVE=%%i:this is cleaner code and does the same. Link to comment Share on other sites More sharing options...
fourte3n Posted September 27, 2004 Share Posted September 27, 2004 My question is how is your installation skinned? mine is the old style windows until reboot.... 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