Jump to content

Recommended Posts

Posted

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.


Posted

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "Custom Bootlogo" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\bootlogo.cmd" /f

REG ADD %KEY%\010 /VE /D "Custom Theme" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\custom.cmd" /f

REG ADD %KEY%\015 /VE /D "Lavasoft Ad-Aware 6 Build 181" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdAware\aaw6181.exe /s" /f

REG ADD %KEY%\020 /VE /D "ZoneAlarm Free 5.0.590" /f

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\ZoneAlarm\zlsSetup_50_590_043.exe /s /noreboot" /f

REG ADD %KEY%\025 /VE /D "TweakUI 2.10 Powertoy" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\PowerToys\TweakUI.msi /qb" /f

REG ADD %KEY%\030 /VE /D "Kazaa Lite Resurrection 0.0.7.5" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\KazaaLite\autoKLiteRessetup.exe" /f

REG ADD %KEY%\035 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\040 /VE /D "Sun Java VM 1.4.2" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\045 /VE /D "Google Search Bar 2.0" /f

REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Google\GoogleToolbarInstaller.exe /qn" /f

REG ADD %KEY%\050 /VE /D "Real Alternative 1.10" /f

REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\RealAlternative\realalt110.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\055 /VE /D "QuickTime Alternative 1.22" /f

REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\QuickTimeAlternative\quicktimealt122.pegasoft.cz.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\060 /VE /D "Peer Guardian 199pr14" /f

REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\PeerGuardian\PeerGuardian_v1.99_pr14.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\065 /VE /D "XP AntiSpy" /f

REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\XPAntiSpy\xp-AntiSpy-setup_en.exe /S" /f

REG ADD %KEY%\070 /VE /D "Skype 0.98" /f

REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\Skype\SkypeSetup-Beta.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\070 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Skype\register.reg" /f

REG ADD %KEY%\075 /VE /D "Reg Scrub" /f

REG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\Applications\RegScrub\regscrubxpsetup_3.2.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\080 /VE /D "Real Converter Pro" /f

REG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\RealConverterPro\ReaConverterPro.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\085 /VE /D "Spybot SD v1.3" /f

REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\Applications\spybot\spybotsd13.exe /VERYSILENT /NOCANCEL /TASKBARHIDE /AUTOCLOSE" /f

REG ADD %KEY%\090 /VE /D "Spyware Blaster 3.1" /f

REG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\Applications\Spyware_Balster\spywareblastersetup.exe /VERYSILENT /NOCANCEL /SP- /NORESTART" /f

REG ADD %KEY%\090 /V 2 /D "%systemdrive%\install\pskill spywareblaster.exe" /f

REG ADD %KEY%\095 /VE /D "MSN Messenger 6.2" /f

REG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\Applications\Messenger\MsnMsgs.msi /qn" /f

REG ADD %KEY%\095 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Messenger\register.reg" /f

REG ADD %KEY%\100 /VE /D "Messenger Plus 3" /f

REG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\Applications\Messenger_Plus\MsgPlus-301.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\100 /V 2 /D "%systemdrive%\install\pskill msnmsgr.exe" /f

REG ADD %KEY%\100 /V 3 /D "%systemdrive%\install\pskill iexplore.exe" /f

REG ADD %KEY%\105 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\105 /V 1 /D "%systemdrive%\install\Cleanup.cmd" /f

EXIT

hope this helps you out,, this is only suggestions and this is what works for me,,

good luck

Posted

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.

Posted

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 usefull

Hope that help

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...