June 2, 200917 yr 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?)
June 2, 200917 yr 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
June 2, 200917 yr Author 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?
June 2, 200917 yr Yes you could, I just started at KB6 because I think all updates for XP start at KB7.
June 2, 200917 yr Cool!Is the /S near the end of the CreateObject line just a hotfix switch? Can I replace it with /quiet /norestart /nobackup?
June 2, 200917 yr Yes that just for the switch, you can use /quiet /norestart /nobackup or any other switches.
June 8, 200917 yr 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 )
Create an account or sign in to comment