Nologic Posted September 9, 2004 Share Posted September 9, 2004 evilvoice -All I can say is try it and see for your self.If feel uncofortable with one large script you could do smaller scripts like so:WinNT.sif[GuiRunOnce]"%systemdrive%\Software\CD-DVD_Tools.cmd""%systemdrive%\Software\Media_Tools.cmd""%systemdrive%\Software\System_Tools.cmd""%systemdrive%\Software\Shell_Tools.cmd"CD-DVD_Tools.cmdcmdow @ /HID@echo offfor %%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\WIN51 set CDROM=%%iSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications 1" /fREG ADD %KEY%\005 /VE /D "Installing App 1" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\App1a.exe /s" /fREG ADD %KEY%\010 /VE /D "Installing App 2" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\App2a.exe /s" /fREG ADD %KEY%\015 /VE /D "Installing App 3" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\App3a.exe /s" /fstart /wait rundll32.exe iernonce.dll,RunOnceExProcessMedia_Tools.cmdcmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications 2" /fREG ADD %KEY%\005 /VE /D "Installing App 1" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\App1b.exe /s" /fREG ADD %KEY%\010 /VE /D "Installing App 2" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\App2b.exe /s" /fREG ADD %KEY%\015 /VE /D "Installing App 3" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\App3b.exe /s" /fstart /wait rundll32.exe iernonce.dll,RunOnceExProcessAny ways every thing will get installed prior to full login...at the same time as RunOnceEx normally executes.start /wait rundll32.exe iernonce.dll,RunOnceExProcessThe above code is what forces the execution right then and there...not on reboot...not any time else...try itAny ways I'll stop trying to sale you on the idea...doesn't matter if you use it or not...just an option. Coolsights2000 -Well any that need to reboot to complete should be on the tail end of your scripts....since forcing the execution of RunOnceEx prior to that actual reboot would probably screw things up. Same thing would apply to Alanoll's method. Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 9, 2004 Author Share Posted September 9, 2004 (edited) This is for you all that like to play with code...The thing I did with mine is switch over to the default profile so when I run the application installation from the runonceEX they are being install into the default profile..read this post on how to switch to the default profile... http://www.msfn.org/board/index.php?showto...=0entry182275I will try to upload a zip file so you look over the code all you will have to do is insert you installation run keys... I use batch and vbs files to install things I use the keys to call the batch files...You will have to change the XPCD to your path,,I use a enviroment varible to point me at the D:\XPCDInstall folder...I add a line code in the HIVESYS.INF so when it lights of my XPCD = D:\XPCDInstallHKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","windir",0x00020002,"%SystemRoot%"HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","XPCD",0x00020002,"D:\XPCDinstall"HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Executive","AdditionalCriticalWorkerThreads",0x00010003,0I also included a batch to run regedit after each step.. just rename the EditRegister.txt when you are done,, also close the regedit before it is time to reboot so the rest of the code will run I inserted it so you can have 30 seconds to look at the runonex keys...I also included a nice and clean way to complete clean up.. the clean up is done after the last reboot and right before it logs you back in this way all open files are closed and not active... You cannot delete open or inuse files..open this files and change the name of the folders to delete to yours,,,CleanUpFinish.vbsand this file I didn't included cause you will have to do your own links replacementICNSetupUnHide.vbs This one puts back my caller ID startup short cutOn Error Resume Next 'Declare var's and objectsDim WshS, fso, sysr, sysd, home, aup, cpf, pf, up, XPCDSet WshS = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")'Expand Environment'Create const's to spare time and placesysr = WshS.ExpandEnvironmentStrings("%SystemRoot%")sysd = WshS.ExpandEnvironmentStrings("%Systemdrive%")home = WshS.ExpandEnvironmentStrings("%Homepath%")aup = WshS.ExpandEnvironmentStrings("%AllUsersProfile%")cpf = WshS.ExpandEnvironmentStrings("%CommonProgramfiles%")pf = WshS.ExpandEnvironmentStrings("%Programfiles%")up = WshS.ExpandEnvironmentStrings("%UserProfile%")XPCD = WshS.ExpandEnvironmentStrings("%XPCD%")fso.CopyFile XPCD & "\ICNSetup\U.S. Robotics Internet Call Notification.lnk" , aup & "\Start Menu\Programs\Startup\U.S. Robotics Internet Call Notification.lnk", true*** NOTE***Also to you all that like to play wth code the same thing goes here as with all code you will nned to modify to meet your needs,,,I think I got it all if not just yellEnjoyMac!LOOK ON PAGE THREE for the updated CODE all dressed up!XPCDforum.zip Edited September 10, 2004 by Coolsights2000 Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 9, 2004 Author Share Posted September 9, 2004 Coolsights2000 -Well any that need to reboot to complete should be on the tail end of your scripts....since forcing the execution of RunOnceEx prior to that actual reboot would probably screw things up. Same thing would apply to Alanoll's method.Also what do you do if any programs drop runonceEX keys back in that need to be pulled before your next set of keys.. For me it is easier to do code in small chunks called subroutines that just have a long list..this way you can test a subroutines out without having to run all the code..Mac! Link to comment Share on other sites More sharing options...
Nologic Posted September 9, 2004 Share Posted September 9, 2004 Well actually all the apps really should be adding to "RunOnce" rather than "RunOnceEx"...so ideally you shouldn't have any thing to worry about. Link to comment Share on other sites More sharing options...
evilvoice Posted September 9, 2004 Share Posted September 9, 2004 ie6 and msoe add to runonceex... Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 10, 2004 Author Share Posted September 10, 2004 Here is a new package all dressed up! All the windows are the same size you can look in the code to see how I pulled it offI spaced the high and low number apart so just keep the key numbers in between the ranges you can look at the code and see how it was done...Right now there is ten lines at the most just keep the program keys balanced to the spacers... you can add or take away to your liking...same here follow the other post and get on the hidden default profile..also look at the cleanup it is nice safe and easy clean up..EnJoY!Mac!XPCDinstall.zip Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted September 10, 2004 Share Posted September 10, 2004 i'll take a look at the code... Link to comment Share on other sites More sharing options...
Nologic Posted September 10, 2004 Share Posted September 10, 2004 Also what do you do if any programs drop runonceEX keys back in that need to be pulled before your next set of keys.. For me it is easier to do code in small chunks called subroutines that just have a long list..this way you can test a subroutines out without having to run all the code..Mac!Well its been a long time since I've ever really done any programming but I know and understand most of the current conecpts. Really there shouldn't be any values needing to be pulled from the runonceEX key. IE or what ever will likely name its sub key out side of the naming convention used by us....thus IE might have a sub key called "ie_vxd_replace" or the like that wouldn't be over writen by some thing called "045".Also when apps add those sub keys they are assuming that you are fully logged in...not in the pre-login state that you are currently...which is what they are needing to preform what ever actions they need done. So really them being forced to run while in this state shouldn't be harmful at all.As for breaking things up I gave an example on page 2 of running multiple files doing this.Well here it is again just to save time hunting.WinNT.sif[GuiRunOnce]"%systemdrive%\Software\CD-DVD_Tools.cmd""%systemdrive%\Software\Media_Tools.cmd""%systemdrive%\Software\System_Tools.cmd""%systemdrive%\Software\Shell_Tools.cmd"Thus like you said its easier to hunt through and code...plus to debug.I have no doubts that your method works as you have written, but I do think this way applys more cleanly...well codes more cleanly. 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