Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


chon_

IE7 RunOnceEx problem solved! Finally!

Recommended Posts

...

@Muki : Can u pl confirm whether this method works for u?

I've just tested your solution and it is fully functional. Good work. :thumbup:hello:

Edited by Muki

Share this post


Link to post
Share on other sites

Ok, I'm a real noob when it comes to unattended windows installs entirely so please bare with me.

I've got KB893803, KB898461, and KB892130 (Windows Installer 3.1, Package Installer for Windows and windows genuine advantage) installed using the SVCPACK.inf. I wanted to try to get IE7, .NET 1.1, 2.0, 3.0, and WMP11 installed before applying the rest of the patches, that way i know for sure what patches need applied. My first step is IE7.

Now my problem, I have got IE7 installed via the RunOnceEx.cmd with the below code.

RunOnceEx.cmd

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 /D "dword:0x00000080" /f

REG ADD %KEY%05 /VE /D "Internet Explorer 7.0" /f
REG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\IE7\IE7-WindowsXP-x86-enu.exe /passive /update-no /nobackup /no-default /norestart" /f
REG ADD %KEY%05 /V 2 /D "%systemdrive%\Install\Scripts\IE7_Hotfixes.cmd" /f


REG ADD %KEY%\999 /VE /D "Reboot" /f
REG ADD %KEY%\999 /V 2 /D "shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..." /f

IE7_Hotfixes.cmd

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 /D "dword:0x00000080" /f

REG ADD %KEY%05 /VE /D "Internet Explorer 7.0 Hotfixes" /f
REG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\IE7\IE7-KB928090-WindowsXP-x86-enu.exe /q /n /z" /f
REG ADD %KEY%05 /V 2 /D "%systemdrive%\Install\IE7\IE7-KB929969-WindowsXP-x86-enu.exe /q /n /z" /f

But my computer doesnt auto reboot, and when i reboot it manually, the hotfixes don't install.

How can I auto reboot my computer, and why do my hotfixes not install?

Edited by lokelo

Share this post


Link to post
Share on other sites

Try read this thread from the first post one more time and you will find functional solution. You should carefully read 'rajesh.kumar' post n.58 in this thread. He is explaining there the right workaround method.

There are missing quotes in your 'restart command', it should be:

REG ADD %KEY%\999 /V 2 /D "shutdown.exe -r -f -t 60 -c \"Windows XP will now restart in 1 minute..\"" /f

And do not forget the backslashes.

Edited by Muki

Share this post


Link to post
Share on other sites

just_laze i suppose the final solution in my post No.58 would satisfy ur query. u can always read the complete thread to know all the problems and findings encountered by us during our testing process.

Share this post


Link to post
Share on other sites
but why would anyone choose installing it via RunOnceEx over integration?

Because why use nLite, when I can make things myself... in a CONTROLLED way, where i can see, what exactly changing and executing...

Share this post


Link to post
Share on other sites

Hey,

Don't get me wrong, I'm not a big fan of nLite, I only use it to integrate IE7 and the accompanying hotfixes.

laze.

Share this post


Link to post
Share on other sites

This works for me.

:thumbup

My auto.cmd start from winnt.sif

[GuiRunOnce]

"%systemdrive%\auto.cmd"

1) auto.cmd add IE7.cmd to RunOnceEx and reboot

2) IE7.cmd install IE7, add IE7_Hotfix.cmd to RunOnceEx and reboot and pause everything with IE7-Pause.cmd before IE7.cmd are completed

3) IE7_Hotfix.cmd intall hotfix KB929969, KB928090 and reboot

auto.cmd:


cmdow @ /hid

@echo off
FOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:
SET PP=%cdrom%\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Program Installation" /f

REG ADD %KEY%10 /VE /D "Windows uppdateringar" /f
REG ADD %KEY%10 /V 1 /D "%PP%Applikationer\NotItegrated\NotIntegrated.cmd" /f

REG ADD %KEY%20 /VE /D ".NET Framework 1.1" /f
REG ADD %KEY%20 /V 1 /D "%PP%Applikationer\Framework\Framework.cmd" /f

REG ADD %KEY%50 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%50 /V 1 /D "%PP%Applikationer\MediaPlayer\WMP.cmd" /f

REG ADD %KEY%60 /VE /D ".NET Framework 2" /f
REG ADD %KEY%60 /V 1 /D "%PP%Applikationer\Framework2\Framework2.cmd" /f

REG ADD %KEY%70 /VE /D "Smart Card Cryptographic" /f
REG ADD %KEY%70 /V 1 /D "%PP%Applikationer\SmartCardCryptographic\SCC.cmd" /f

REG ADD %KEY%80 /VE /D "HighMAT-support i Skriv till CD-skiva" /f
REG ADD %KEY%80 /V 1 /D "%PP%Applikationer\HighMAT\HMTCDWizard.msi /qn" /f

REG ADD %KEY%\400 /VE /D "Raderar installationsfiler..." /f
REG ADD %KEY%\400 /V 1 /D "%systemdrive%\Cleanup.cmd" /f

REG ADD %KEY%\500 /VE /D "Internet Explorer 7.0" /f
REG ADD %KEY%\500 /V 1 /D "%PP%Applikationer\IE7\Temp\IE7.cmd" /f

shutdown.exe -r -t 40 -f -c "Installations processen startar om datorn..."


exit

IE7.cmd:


cmdow @ /HID

@Echo off
FOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:
SET PP=%cdrom%\


Start /Wait %PP%Applikationer\IE7\IE7-WindowsXP-x86-sve.exe /passive /update-no /norestart

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "IE 7.0 uppdateringar" /f
REG ADD %KEY% /V Flags /T REG_DWORD /D 0x80 /F

REG ADD %KEY%\900 /VE TITLE /D "IE 7.0 uppdateringar" /f
REG ADD %KEY%\900 /V 1 /D "%PP%Applikationer\IE7\IE7_Hotfix.cmd" /f

REG ADD %KEY%\910 /VE /D "Startar om datorn" /f
REG ADD %KEY%\910 /V 1 /D "cmd.exe /c shutdown -r -t 10 -c \"Installations processen startar om datorn...\"" /f

shutdown.exe -r -t 10 -f -c "Installations processen startar om datorn..."
Start /Wait %PP%Applikationer\IE7\IE7-Pause.cmd

Exit

IE7_Hotfix.cmd:


cmdow @ /HID

@Echo off
FOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:
SET PP=%cdrom%\


Start /Wait %PP%Applikationer\IE7\IE7-KB929969-WindowsXP-x86-sve.exe /passive /norestart
Start /Wait %PP%Applikationer\IE7\IE7-KB928090-WindowsXP-x86-sve.exe /passive /norestart /overwriteoem


Exit

IE7-Pause.cmd:


cmdow @ /HID

Pause

exit

You can use /quiet if you dont like /passive and change lanquage to yours. (Bad english but i hope you will understand.)

Share this post


Link to post
Share on other sites

So if i understand it correctly - after i install IE7 and reboot i can't have runonceex status dialog showed? ):

Share this post


Link to post
Share on other sites

FWIW, I had the same problem described in this thread, and it seems it works itself out just by running an update. I don't think I'll spend hours trying to fix this when it fixes itself :)

Share this post


Link to post
Share on other sites
Hey guys! Well after a few hours of work I finally have a real fix for this, now this is one of my first few posts so don't go nuts on me if I do/say something wrong :no: . I have tested this on XP Home and Pro using nLite and it worked perfectly! Ready to know what my "awesome fix" is?? Okay, okay...I have slipstreamed KB929969 and KB928090 into the Internet Explorer 7 installation. It is already a silent installer, and I had a great time making this and learned a LOT too, so all I ask is a little feedback and appreciation because this is my own work. The first link is an nLite addon of this and the second is just the installer (in case you don't use nLite for some reason) Enjoy everyone! :thumbup

Addon for nLite

Quiet Installer Package

The installer fix does not seem to be available.

Please make the installer available.

Edited by Ascii2

Share this post


Link to post
Share on other sites

cool, adding

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

made teh dialog boxes dappear & ie7 installs all ok, but for some reason, i don't get the tabbed version.

my looks like ie6 when i run it.

any thoughts as too what i'm doing wrong?

I use:

REG ADD %KEY%\020 /VE /D "Internet Explorer 7" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Apps\IE7\IE7-WindowsXP-x86-enu.exe /quiet /update-no /no-default /norestart" /f
REG ADD %KEY%\020 /V 2 /D "%CDROM%\Apps\IE7\IE7-WindowsXP-KB947864-x86-ENU.exe /quiet /norestart" /f
REG ADD %KEY%\020 /V 3 /D "%CDROM%\Apps\IE7\IE7-WindowsXP-KB950759-x86-ENU.exe /quiet /norestart" /f
REG ADD %KEY%\020 /V 4 /D "%CDROM%\Apps\IE7\IE7-WindowsXP-KB953838-x86-ENU.exe /quiet /norestart" /f
REG ADD %KEY%\020 /V 5 /D "%CDROM%\Apps\IE7\IE7-WindowsXP-KB956390-x86-ENU.exe /quiet /norestart" /f

Share this post


Link to post
Share on other sites
cool, adding

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

made teh dialog boxes dappear & ie7 installs all ok, but for some reason, i don't get the tabbed version.

my looks like ie6 when i run it.

That seems fortunate.
any thoughts as too what i'm doing wrong?
Have registry settings been applied (disabling tabbed browsing, perhaps)?

Share this post


Link to post
Share on other sites

nope, no ie7 specific reg tweaks, but do have a fair few for ie6 which i hadn't thought could be causing an issue - will play more tonight

however when i run from dos area of install after 1st login, (forget proper stage name) it install all fine as expected with no issues at all - even tabbed browsing

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...