Jump to content

Hotfixes thru Batch in GuiRunOnce


 Share

Recommended Posts

hello

i'm trying to set up my unattended CD with the whole bunch of MS-stuff. but I didn't want to mess around with svcpack.inf 'cause of the dependencies. hotfixes of mediaplayer should be installed after mediaplayer etc.

so I did everything with 2 batch-files in guirunonce. see below:

@echo off

echo Installing.... Microsoft Internet Explorer 6.0sp1

start /wait %systemdrive%\install\000_Microsoft\000_ie6\ie6setup.exe /R:N

echo Installing.... Microsoft Windows Media Player 9.0

start /wait msiexec /i %systemdrive%\install\000_Microsoft\005_wmp9\mpsetupedp.msi REBOOT="SUPPRESS"

echo Installing.... Microsoft DirectX 9.0b

start /wait %systemdrive%\install\000_Microsoft\010_directx9\dxsetup.exe /opk

echo Installing.... Microsoft Data Access Components 2.8

start /wait %systemdrive%\install\000_Microsoft\015_mdac28\MDAC_TYP.EXE /Q /c:"setup /qn1"

echo Installing.... Microsoft Data Access Components 2.8 Hotfix Q832483.EXE

start /wait %systemdrive%\install\000_Microsoft\015_mdac28\Q832483.EXE /C:"dahotfix.exe /q /n" /q

echo Installing.... Microsoft Windows Movie Maker 2.0

start /wait %systemdrive%\install\000_Microsoft\020_wmm2\mm20deu.exe /q:a /c:"msiexec.exe /i MM20.MSI /qn"

echo Installing.... Microsoft .Net Framework 1.1

start /wait %systemdrive%\install\000_Microsoft\025_dotnet11\dotnetfx.exe /q:a /c:"install /q"

echo Installing.... Microsoft .Net Framework 1.1 German Language Pack

start /wait %systemdrive%\install\000_Microsoft\025_dotnet11\langpack.exe /q:a /c:"inst.exe /qb /l"

echo Installing.... Microsoft Windows-Journal-Viewer 1.5

start /wait %systemdrive%\install\000_Microsoft\030_journal15\JVsetup.exe /q:a /c:"msiexec.exe /i MICROS~1.MSI /qn"

pause

first creats with dir-command a numeric ordered list of Q-fixes and KB-fixes. FOR-loop reads the list and installs the fix with corresponding parameter
@echo off

set hotfixpath=%systemdrive%\install\005_Hotfixes

dir /B /On %hotfixpath%\q* > %hotfixpath%\files.txt

for /F "tokens=*" %%i IN (%hotfixpath%\files.txt) DO (

echo Installing.... %%i

start /wait %hotfixpath%\%%i /Q:A /R:N

echo.

)

dir /B /On %hotfixpath%\KB* > %hotfixpath%\files.txt

for /F "tokens=*" %%i IN (%hotfixpath%\files.txt) DO (

echo Installing.... %%i

start /wait %hotfixpath%\%%i /Q /N /Z /O

echo.

)

del %hotfixpath%\files.txt

pause

my problem now is, that some of the hotfixes won't get installed correctly. checking windowsupdate shows me some missing fixes I already got in my batch.

I assume it's because of the suppressed reboots. by starting my batch several times manually while rebooting in between I get the system up to date.

I thought you have to install hotfixes in numeric order, thats why I created the batch with the FOR-loop.

one of the missing fixes is the MDAC-update 832483. but it will be installed right after MDAC 2.8 itself in the first batch.

the others are 826939, 824146, 826942, 822603

any ideas? is there a special order to install the fixes??

here's my list of hotfixes to be installed

KB322011.exe

KB327979.exe

KB810243.exe

KB814995.exe

KB816093.exe

KB817778.exe

KB820291.exe

KB821253.exe

KB822603.exe

KB823182.exe

KB824105.exe

KB824141.exe

KB825119.exe

KB826939.exe

KB826942.exe

KB828026.exe

KB828028.exe

KB828035.exe

KB829558.exe

q327405.exe

q330994.exe

q814078.exe

q816093.exe

q832894.exe

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...