andwan0 Posted June 2, 2009 Share Posted June 2, 2009 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 More sharing options...
gunsmokingman Posted June 2, 2009 Share Posted June 2, 2009 Batch files is not my best, but try this VBS script. Just place the script in the directory that you havethe 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 More sharing options...
andwan0 Posted June 2, 2009 Author Share Posted June 2, 2009 Batch files is not my best, but try this VBS script. Just place the script in the directory that you havethe 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 NextWow, 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 More sharing options...
gunsmokingman Posted June 2, 2009 Share Posted June 2, 2009 Yes you could, I just started at KB6 because I think all updates for XP start at KB7. Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2009 Share Posted June 2, 2009 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 More sharing options...
gunsmokingman Posted June 2, 2009 Share Posted June 2, 2009 Yes that just for the switch, you can use /quiet /norestart /nobackup or any other switches. Link to comment Share on other sites More sharing options...
hj_fr Posted June 8, 2009 Share Posted June 8, 2009 Yes a simple .cmd file is easy to do it. Example, i use :hotfix.cmd :@echo offecho hotfix post SP3...for %%a in (\\server\dir\hotfix\*.exe) do (Start /wait "" %%a /passive /norestart /nobackup ) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now