Denney Posted July 10, 2004 Posted July 10, 2004 Is there any way to pause RunOnceEx so that it loads the Windows Theme?I need to pause the RunOnceEx section so that I can apply the registry edits AFTER the shell loads.
Lost Soul Posted July 10, 2004 Posted July 10, 2004 to load the theme from the runonceex you dont really need a pause mine works just fine i just add the custom theme to the beginning of the runonceex, as long as you have it installing before any of your programs it should instal just fine, i know when ive tried to instal the custom theme any where other then before the programs with in the runonceex it never loaded in,, heres an example of my runonceex to give you an ideal of what i done..cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\005 /VE /D "Custom Bootlogo" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\bootlogo.cmd" /fREG ADD %KEY%\010 /VE /D "Custom Theme" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\custom.cmd" /fREG ADD %KEY%\015 /VE /D "Lavasoft Ad-Aware 6 Build 181" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdAware\aaw6181.exe /s" /fREG ADD %KEY%\020 /VE /D "ZoneAlarm Free 5.0.590" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\ZoneAlarm\zlsSetup_50_590_043.exe /s /noreboot" /fREG ADD %KEY%\025 /VE /D "TweakUI 2.10 Powertoy" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\PowerToys\TweakUI.msi /qb" /fREG ADD %KEY%\030 /VE /D "Kazaa Lite Resurrection 0.0.7.5" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\KazaaLite\autoKLiteRessetup.exe" /fREG ADD %KEY%\035 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu.exe -p\"-s /v\"/qn\"\"" /fREG ADD %KEY%\040 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v/qn" /fREG ADD %KEY%\045 /VE /D "Google Search Bar 2.0" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Google\GoogleToolbarInstaller.exe /qn" /fREG ADD %KEY%\050 /VE /D "Real Alternative 1.10" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\RealAlternative\realalt110.exe /VERYSILENT /SP-" /fREG ADD %KEY%\055 /VE /D "QuickTime Alternative 1.22" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\QuickTimeAlternative\quicktimealt122.pegasoft.cz.exe /VERYSILENT /SP-" /fREG ADD %KEY%\060 /VE /D "Peer Guardian 199pr14" /fREG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\PeerGuardian\PeerGuardian_v1.99_pr14.exe /VERYSILENT /SP-" /fREG ADD %KEY%\065 /VE /D "XP AntiSpy" /fREG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\XPAntiSpy\xp-AntiSpy-setup_en.exe /S" /fREG ADD %KEY%\070 /VE /D "Skype 0.98" /fREG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\Skype\SkypeSetup-Beta.exe /VERYSILENT /SP-" /fREG ADD %KEY%\070 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Skype\register.reg" /fREG ADD %KEY%\075 /VE /D "Reg Scrub" /fREG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\Applications\RegScrub\regscrubxpsetup_3.2.exe /VERYSILENT /SP-" /fREG ADD %KEY%\080 /VE /D "Real Converter Pro" /fREG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\RealConverterPro\ReaConverterPro.exe /VERYSILENT /SP-" /fREG ADD %KEY%\085 /VE /D "Spybot SD v1.3" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\Applications\spybot\spybotsd13.exe /VERYSILENT /NOCANCEL /TASKBARHIDE /AUTOCLOSE" /fREG ADD %KEY%\090 /VE /D "Spyware Blaster 3.1" /fREG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\Applications\Spyware_Balster\spywareblastersetup.exe /VERYSILENT /NOCANCEL /SP- /NORESTART" /fREG ADD %KEY%\090 /V 2 /D "%systemdrive%\install\pskill spywareblaster.exe" /fREG ADD %KEY%\095 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\Applications\Messenger\MsnMsgs.msi /qn" /fREG ADD %KEY%\095 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Messenger\register.reg" /fREG ADD %KEY%\100 /VE /D "Messenger Plus 3" /fREG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\Applications\Messenger_Plus\MsgPlus-301.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\100 /V 2 /D "%systemdrive%\install\pskill msnmsgr.exe" /fREG ADD %KEY%\100 /V 3 /D "%systemdrive%\install\pskill iexplore.exe" /fREG ADD %KEY%\105 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\105 /V 1 /D "%systemdrive%\install\Cleanup.cmd" /fEXIThope this helps you out,, this is only suggestions and this is what works for me,, good luck
Denney Posted July 10, 2004 Author Posted July 10, 2004 I think you missread what I meant.I don't want a custom theme. I just need the theme/shell to LOAD before I apply my registry edits. When the shell loads, it seems to overwrite some of my registry edits.2 examples are the "LinksFolderName" registry value that gets the value of "Favorites" if I set it to nothing before the shell loads and the other is the "Favorites" registry value that removes IE and OE from the start menu. It seems to get overwritten when the shell loads.BTW... I'm using SP2 RC2.
jdoe Posted July 10, 2004 Posted July 10, 2004 I don't think you can pause RunOnceEx because the shell loads only when all the program started in RunOnceEx are closed.I don't have tested it but maybe if you start a batch (in RunOnceEx) that start an other one with a sleep in it (10 seconds to make sure the shell is loaded), maybe this could make what you want.If you use a batch file you will need SLEEP.EXE, you can find one on the Web. Just add the line (in the the new batch started)START /WAIT SLEEP.EXE X where X is the number of second (or millisecond) to wait before continue the rest of the batch and after SLEEP.EXE X you put REGEDIT /S FILE.REG (I think you want to apply a reg file). You will need a reboot (or a logout) for the new reg to be applied.If you can write VBscript just add WScript.Sleep X (where X is the number of millisecond to wait).If you test that please give feedback if it work, it can be usefullHope that help
Lost Soul Posted July 10, 2004 Posted July 10, 2004 i think your best bet is to try the sleep.exe file other then that im not sure..
GreenMachine Posted July 11, 2004 Posted July 11, 2004 My understanding is that the shell will not load until RunOnce and RunOnceEx have finished. I think you only alternative is the StartUp directory, which loads after the shell.
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