How to Create an Autopatcher for Windows Xp Using Batch Files

by ceridan in Circuits > Software

13137 Views, 8 Favorites, 0 Comments

How to Create an Autopatcher for Windows Xp Using Batch Files

overkill.jpg
How to create an autopatcher for windows xp using batch files
Description only, pictures may never exist :)

All Steps Listed Here Because It's to Hard to Read in Multiple Pages

1. Create a new folder on your desktop
2. Download all the required kb patches from the microsoft download site Here and copy them into the new folder.
3. Open up notepad
4. Cut and paste this code into it:

@echo off
echo Installing Windows XP Updates
cmd >updatelog.txt

5. ok at this point you'll have to type yourself, all you need to do is insert the name of each patch file and follow it up with these syntax commands /passive /norestart /n

eg.
WindowsXP-KB920685-x86-ENU.exe /passive /norestart /n
WindowsXP-KB920214-x86-ENU.exe /passive /norestart /n

continue doing this until all the patches you have downloaded are listed, if you have downloaded some major change patches (eg. MP10Setup.exe (media player 10) you can also add these just use the syntax like this "MP10Setup.exe /Q" it will have the same effect.)

6. Insert 'exit' to the end of the script or 'shutdown -r -t 30 -f' if you want it to automatically reboot after installing.

7. save it as a .bat file into the new folder on the desktop

Thats all there is too it, this way you can bunch up a whole bucketload of updates into a single folder and automatically update the windows without downloading them again (burn it to a cd etc) This is a real time saver for techs like myself.

Extra's

You can make this a very proffesional package by using winrar to turn it into a self extracting executable.

1. Use bat2exe to turn the batch into a com file, rename to exe.
2. Use winrar (www.rarlabs.com) to create a self extracting exectuable, inside the winrar options during the creation proccess you can specify a directory to auto extract to, also you can tell it to automatically execute the batch/exe file you have made. (You can even add a logo to the self extractor and a readme file) :)

Anyhow thats how it's all done, no need for any pictures on how to do this because it's all scripted anyhow :)