Jump to content

IE7 RunOnceEx problem solved! Finally!


Recommended Posts

Well, I finally made it! :w00t:

Here's what I wanted to do:

1) Install Internet Explorer 7 via RunOnceEx.

2) Reboot.

3) Install IE's hotfixes via RunOnceEx too.

4) Do NOT altere/replace any DLLs and/or other files during the process.

Problem is (as you should know by now), that IE7 setup process "clears" RunOnceEx registry key, hence no entries after IE7's setup entry are processed and RunOnceEx entries are not performed on next reboot.

Actually the solution is very simple, and it's based in THIS MS article.

You just need to add a FLAG to your RunOnceEx key. Below you'll find part of my RunOnceEx.cmd file to illustrate this:

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

REG ADD %KEY% /V TITLE /D "Instalando aplicaciones y mejoras" /f
REG ADD %KEY% /V FLAGS /D "dword:0x00000080" /f

REG ADD %KEY%80 /VE /D "Adobe Reader 8.0.0" /f
REG ADD %KEY%80 /V 1 /D "%CDROM%\install\AdobRdr8\AcroRead.msi /qb" /f

REG ADD %KEY%\100 /VE /D "Adobe Flash Player 9" /f
REG ADD %KEY%\100 /V 1 /D "%CDROM%\Install\AdobeFlash\install_flash_player_active_x.msi /qb REBOOT=Suppress"

REG ADD %KEY%\220 /VE /D "MS Office Professional 2003 SP2" /f
REG ADD %KEY%\220 /V 1 /D "%CDROM%\Install\Off_2003\setup.exe TRANSFORMS=Unat.MST /qb-" /f

REG ADD %KEY%\230 /VE /D "Internet Explorer 7.0" /f
REG ADD %KEY%\230 /V 1 /D "regedit /s %CDROM%\Install\Scripts\TwksXP_u.REG" /f
REG ADD %KEY%\230 /V 2 /D "%CDROM%\Install\Scripts\CleanXP.cmd" /f
REG ADD %KEY%\230 /V 3 /D "%CDROM%\Install\IE7\IE7-WindowsXP-x86-esn.exe /quiet /passive /update-no /no-default /norestart" /f
REG ADD %KEY%\230 /V 4 /D "%CDROM%\Install\Scripts\IE7_Hotfixes.cmd" /f

EXIT

Note the third line of code: REG ADD %KEY% /V FLAGS /D "dword:0x00000080" /f. This is the only change you should make tou your file to get the work done. This flag prevents RunOnceEx key to be cleared.

What IE7_Hotfixes.cmd does, is add registry entries for the hotfixes, which will be installed on the next reboot and restarts the computer after installing IE7. Here's my IE7_Hotfixes.cmd file:

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

REG ADD %KEY% /V FLAGS /D "dword:0x00000080" /f
REG ADD %KEY%\910 /V 1 /D "%CDROM%\Install\IE7\Hotfixes\IE7-KB929969-WindowsXP-x86-esn.exe /q /n /z" /f
REG ADD %KEY%\910 /V 2 /D "%CDROM%\Install\IE7\Hotfixes\IE7-KB928090-WindowsXP-x86-esn.exe /q /n /z" /f

shutdown -r -f -t 180 -c "Reiniciando en 3 minutos..."

Again, note this line: REG ADD %KEY% /V FLAGS /D "dword:0x00000080" /f.

Of course, I use Spanish language, but the same apllies to your language distribution. B)

Let me know any comments/doubts.

Link to comment
Share on other sites


Unfortunately, I'm not in a position to try this right now, but I'm just a little sceptical.

I don't understand how, adding a flag which disables dialog display status, prevents the contents of the key from being cleared.

If it is confirmed to work however, well done for finding a solution!

Link to comment
Share on other sites

Well, I have to admit it, I too was very surprised when it worked.

BTW, I forgot to mention that the solution was based in this article too, as you can see near the bottom it says:

WORKAROUND

When you develop the application, set the No Status Dialog option of the RunOnceEx registry key.

And that's exactly what that new line of code does (it sets the No Status Dialog Option).

Based on that I started to do some testing, and..... these are my results. ;)

Give it a try, you have nothing to loose! ;)

Edited by chon_
Link to comment
Share on other sites

BTW, I forgot to mention that the solution was based in this article too, as you can see near the bottom it says:
WORKAROUND

When you develop the application, set the No Status Dialog option of the RunOnceEx registry key.

Well that certainly lends some weight to the solution then; a Microsoft temporary fix!
Link to comment
Share on other sites

I get it worked replacing the file "iernonce.dll", the only problem is, when i launch internet explorer, it appears the page of the configuration again, it seems that has been cleared only two tweaks, then i create a new file named: ExtraCleanUp.cmd, the process is the following

I extracted IE7.exe and I extracted also KB928090.exe, then i copied the file "iernonce.dll" from the extracted KB928090.exe to the the extracted IE7.exe (overwrite it).

Finally i repacked again the extracted IE7.exe with winrar:

Setup=update\iesetup.exe /quiet /update-no /nobackup /norestart
TempMode
Silent=1
Overwrite=1
Title=Internet Explorer 7

I have installed IE7 via SVCPACK.inf and the hotfixes KB928090, KB929969 via RunOnceEx.

I have to apply only two tweaks via the file "ExtraCleanUp.cmd" that first must be copied from the file CleanUp.cmd. The idea is to apply the two tweaks when it is rebooted during the 2 minutes.

CleanUp.cmd

cmdow @ /HID
@echo off
shutdown.exe -r -f -t 120 -c "Windows XP se reiniciara en dos minutos"
net user aspnet /delete
COPY "%SystemDrive%\install\ExtraCleanUp.cmd" "%UserProfile%\Men£ Inicio\Programas\Inicio\"

ExtraCleanUp.cmd

cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Limpiando" /f

REG ADD %KEY%42 /VE /D "Limpiando Ficheros" /f
REG ADD %KEY%42 /V 1 /D "REGEDIT /S %SystemDrive%\install\PishingFilter.reg" /f
REG ADD %KEY%42 /V 2 /D "CMD /C RD /S /Q \"%systemdrive%\install\"" /f
REG ADD %KEY%42 /V 3 /D "CMD /C DEL /Q \"%UserProfile%\Men£ Inicio\Programas\Inicio\ExtraCleanUp.cmd\"" /f

Rundll32.exe iernonce.dll,RunOnceExProcess
Exit

PishingFilter.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"RunOnceComplete"=dword:00000001
"RunOnceHasShown"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PhishingFilter]
"Enabled"=dword:00000000
"ShownVerifyBalloon"=dword:00000001

and the value of the pishing must be changed if you want to enable it.

Edited by Major
Link to comment
Share on other sites

EDIT; got to bottom to see my other question :=).

Got some questions

I dont understand the flag your talking about, is it the last /F in one of those commands?

when i use runonce i use gosh's guide

Here's my runonceex.inf settings

[Version]

Signature=$CHICAGO$

[DefaultInstall]

AddReg = RunXP

[XP]

AddReg = RunXP

[RunXP]

HKLM,"%RunOnceEx%\",Title,0,"Installing Applications"

HKLM,"%RunOnceEx%\",Flags,0x00010001,20

HKLM,"%RunOnceEx%\install01",,,"Installing ViA Driver"

HKLM,"%RunOnceEx%\install01",1,,"%24%\Install\Chipset\Chipset.exe"

HKLM,"%RunOnceEx%\install02",,,"Installing Nvidia Driver"

HKLM,"%RunOnceEx%\install02",1,,"%24%\Install\Graphics\NVIDIA-NGO19291.exe"

HKLM,"%RunOnceEx%\install03",,,"Installing Razer Driver"

HKLM,"%RunOnceEx%\install03",1,,"%24%\install\Mus\razersetup.exe"

HKLM,"%RunOnceEx%\install04",,,"Installing Creative Audigy"

HKLM,"%RunOnceEx%\install04",1,,"%24%\install\Lyd\Drivers.exe"

HKLM,"%RunOnceEx%\install05",,,"Installing WinRAR"

HKLM,"%RunOnceEx%\install05",1,,"%24%\install\winrar\winrar362.exe"

HKLM,"%RunOnceEx%\install06",,,"Installing 7-zip"

HKLM,"%RunOnceEx%\install06",1,,"%24%\install\winrar\7z444.exe"

HKLM,"%RunOnceEx%\install07",,,"Installing Universal Extractor"

HKLM,"%RunOnceEx%\install07",1,,"%24%\install\winrar\uniextract142.exe"

HKLM,"%RunOnceEx%\install08",,,"Installing Ventrilo & Teamspeak"

HKLM,"%RunOnceEx%\install08",1,,"%24%\install\wzr\Ventrilo_TeamSpeak.exe /s"

HKLM,"%RunOnceEx%\install09",,,"Installing Favorites"

HKLM,"%RunOnceEx%\install09",1,,"%24%\install\wzr\Foretrukne.exe /s"

HKLM,"%RunOnceEx%\install10",,,"Installing Quick Launch"

HKLM,"%RunOnceEx%\install10",1,,"%24%\install\wzr\Quick_Launch.exe /s"

HKLM,"%RunOnceEx%\install11",,,"Installing Pictures"

HKLM,"%RunOnceEx%\install11",1,,"%24%\install\wzr\Updates.exe /s"

HKLM,"%RunOnceEx%\install12",,,"Installing MSFN Codecs"

HKLM,"%RunOnceEx%\install12",1,,"%24%\install\wzr\Codecs.exe"

HKLM,"%RunOnceEx%\install13",,,"Installing MSN"

HKLM,"%RunOnceEx%\install13",1,,"%24%\install\wzr\msn750324.exe"

HKLM,"%RunOnceEx%\install14",,,"Installing Firefox Profile"

HKLM,"%RunOnceEx%\install14",1,,"%24%\install\wzr\firefox-profiles.exe /s"

HKLM,"%RunOnceEx%\install15",,,"Applying Registry Tweaks"

HKLM,"%RunOnceEx%\install15",1,,"%24%\install\REGEDIT /S RegTweaks.reg"

AddReg=13min

[13min]

[strings]

RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

its ocword i see the runonce RUN! but no apps in it how comes?

runonceex.jpg

i normally dont beg, but please help me out here guys ;)

edit;

Okay okay i missed some of the txt "REG ADD %KEY% /V FLAGS /D "dword:0x00000080" /f"

But how should my runonceex.inf look like then? i already have a flag in it "HKLM,"%RunOnceEx%\",Flags,0x00010001,20" but surely not the same ;)

Edited by wazer
Link to comment
Share on other sites

@ just_laze

Complicated!

All that is happening is an extra line is being added to the RunOnceEx.cmd file.

From 'The Guide'

cmdow @ /HID

@echo off

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

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

New Suggestion

cmdow @ /HID

@echo off

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

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

REG ADD %KEY% /V Flags /T REG_DWORD /D 128 /F

@ wazer

Just change:

[RunXP]
HKLM,"%RunOnceEx%\",Title,0,"Installing Applications"
HKLM,"%RunOnceEx%\",Flags,0x00010001,20

to

[RunXP]
HKLM,%RunOnceEx%,Title,,"Installing Applications"
HKLM,%RunOnceEx%,Flags,0x10001,128

Link to comment
Share on other sites

Hey,

Ok, so I didn't take the time to read the thread in it's entirity... but why would anyone choose installing it via RunOnceEx over integration? It slows RunOnceEx down massively.

laze.

What else should we use then?

Link to comment
Share on other sites

@ just_laze

The method of which you speak still appears to be using older files to get over a problem, which isn't there any more. There is no need to replace IE7 files with IE6 files and use other peoples software and /or packs.

People who follow the Unattended Guide, now apparently have their fix.

Link to comment
Share on other sites

Hey,

My point is, I wouldn't install IE7 via RunOnceEx because the installation time of IE7 adds a huge overheard (IE7 takes about 10-15 minutes to install). I would choose to integrate it and when integrating IE7, there is a requirement to replace files which is relatively simple to implement.

laze.

Edited by just_laze
Link to comment
Share on other sites

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...