Jump to content

Simple batch file for post-SP2 hotfixes


Recommended Posts

I'm trying to find an easy way to add all the post-SP2 fixes to ANY previously install Windows XP that has just had the XP SP2 update installed. Could I just use a simple batch file like this one:

start /wait Windows-KB890830-V1.2-ENU.exe /q /n /z
start /wait WindowsXP-KB867282-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB873333-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB873339-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB885250-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB885626-v2-x86-enu.exe /q /n /z
start /wait WindowsXP-KB885835-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB885836-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB886185-x86-enu.exe /q /n /z
start /wait WindowsXP-KB887742-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB888113-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB888302-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB890047-X86-ENU.exe /q /n /z
start /wait WindowsXP-KB890175-x86-ENU.exe /q /n /z
start /wait WindowsXP-KB891781-x86-ENU.exe /q /n /z
start /wait gdidettool.exe /Q:A /R:N

Does the order of the hotfixes matter? Anything else I should know?

Link to comment
Share on other sites


Running these hotfixes through a batch file will work fine except you need to download qchain.exe and run it after the last hotfix is installed.

This will allow you to install the updates with a single reboot and insure that the appropriate registry entries and system updates are registered.

Link to comment
Share on other sites

you can throw out this start /wait. if you add an exe-file to a batch-file it waits the execution time by default before starting the next entry.

the switches are correct. qchain.exe is no longer needed, too.

you can make it even simpler by using for-statements in the batchfile. example:

for %%x in (%SystemDrive%\Install\Hotfix\Typ1\KB*.exe) do %%x /q /n /z
for %%x in (%SystemDrive%\Install\Hotfix\Typ2\KB*.exe) do %%x /Q:A /R:N
for %%x in (%SystemDrive%\Install\Hotfix\Typ3\KB*.exe) do %%x

pay attention that i always rename the hotfix files from something like "WindowsXP-KB867282-x86-ENU.exe" to "KB867282.exe" and the for-statements above only work with files beginning with "KB" - as you may have seen already ;)

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