Jump to content

HELP: how to batch install 100 hotfixes/updates


andwan0

Recommended Posts

If one has a bunch of XP hotfix/updates then how can one batch install them all? I downloaded around 100 hotfix/updates using Windows Updates Downloader.

Ofcourse, there's about 3 pre-requisite files that needs to be installed first, but then I assume the rest can be installed in any order.

I remember there was a really good program (AutoPatcher) which can batch install. But my bunch of files are custom made (vanilla XP updates & SP1a updates... so AutoPatcher wouldn't work unless I know how to program AutoPatcher to work with my custom files?)

Link to comment
Share on other sites


Batch files is not my best, but try this VBS script. Just place the script in the directory that you have

the updates located.

Save As InstallKB.vbs

 Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")
Dim Loc :Set Loc = Fso.GetFolder(".")
Dim Obj
For Each Obj In Loc.Files
If InStr(Obj,"KB6") Or InStr(Obj,"KB7") Or InStr(Obj,"KB8") Or InStr(Obj,"KB9") Then
CreateObject("Wscript.Shell").Run(Chr(34) & Obj & Chr(34) & " /S"),1,True
End If
Next

Link to comment
Share on other sites

Batch files is not my best, but try this VBS script. Just place the script in the directory that you have

the updates located.

Save As InstallKB.vbs

 Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")
Dim Loc :Set Loc = Fso.GetFolder(".")
Dim Obj
For Each Obj In Loc.Files
If InStr(Obj,"KB6") Or InStr(Obj,"KB7") Or InStr(Obj,"KB8") Or InStr(Obj,"KB9") Then
CreateObject("Wscript.Shell").Run(Chr(34) & Obj & Chr(34) & " /S"),1,True
End If
Next

Wow, looks like you know your stuff! So all KB6/7/8/9 were for XP? and I could probably guess KB1/2/3/4/5 was for 98, etc?

Link to comment
Share on other sites

Cool!

Is the /S near the end of the CreateObject line just a hotfix switch? Can I replace it with /quiet /norestart /nobackup?

Link to comment
Share on other sites

Yes a simple .cmd file is easy to do it. Example, i use :

hotfix.cmd :

@echo off
echo hotfix post SP3...
for %%a in (\\server\dir\hotfix\*.exe) do (
Start /wait "" %%a /passive /norestart /nobackup )

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