Introduction: How to Create an Autopatcher for Windows Xp Using Batch Files

Picture of How to Create an Autopatcher for Windows Xp Using Batch Files

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

Step 1: 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 :)

Comments

Foaly7 (author)2008-10-10

(Don't reply rudely, I am still adding to my vast expanse of computer software knowledge) What is an autopatcher anyway?

ContraMaster (author)Foaly72016-01-01

It will apply updates/patches automatically to the specified "thing". So you don't need to go online all the time and find the updates and manually spend your time doing it.

bmazing (author)2009-02-14

a much easier way to do patch all files is windows auto patcher

Cameron100 (author)2008-06-05

Do you have to put the downloads in a new foler or just any folder?

maryannr (author)2008-03-14

Last but not least, what do you do with CAB Files? I heard that! No Seriously. Do you just go to Windows Update & Let Them Install Those? There are 2 that I have that are not listed at all cause I don't know what to do with em. I heard that again! Well I gave you guys all my questions. How bout some help, PRETTY PLEASE! Thanks

maryannr (author)2008-03-14

What I do know is all these have to be put in some sort of installation order Right? Also, what about this 8.3 name stuff? Read that Instead of typing WindowsXP-KB**** etc. etc. that it should be KB*******.exe and thats it. ANYONE?

maryannr (author)2008-03-14

And here is the part I'm not sure of: Windowsinstaller-KB893803-v2-x86- ENU.exe/passive/norestart/n MSXML4-KB936181-ENU.exe/passive/norestart/n Windowsmedia9-KB936782-x86-ENU.exe/passive/norestart/n Windowsmedia-KB911564-x64-ENU.exe/passive/norestart/n WindowsXP-KB908531-v2-x86-ENU.exe/passive/norestart/n WindowsXP-KB904942-v2-x86-ENU.exe/passive/norestart/n MP10Setup.exe/Q Windowsmedia-KB891122-x86-ENU.exe/passive/norestart/n WindowsXP-KB927891-v3-x86-ENU.exe/passive/norestart/n WindowsXP-KB900485-v2-x86-ENU.exe/passive/norestart/n WindowsXP-KB896344-v2-x86-ENU.exe/passive/norestart/n WindowsXP-KB923689-v2-x86-ENU.exe/passive/norestart/n WindowsXP-KB911280-v2-x86-ENU.exe/passive/norestart/n WindowsXP-KB887472-x86-sp1-ENU.exe/passive/norestart/n Windowsmedia10-KB936782-x86-ENU.exe/passive/norestart/n Windowsmedia6-KB925398-v2-x86-ENU.exe/passive/norestart/n MSXML-KB933579-ENU-amd64.exe/passive/norestart/n MSXML5-KB933579-ENU-ia64.exe/passive/norestart/n MSXML6-KB933579-ENU-x86.exe/passive/norestart/n MSXML6sp 1-KB934268-ENU-amd64.exe/passive/norestart/n MSXML6sp 1-KB934268-ENU-ia64.exe/passive/norestart/n MSXML6sp 1-KB934268-ENU-x86.exe/passive/norestart/n shutdown -r -t 30 -f

maryannr (author)2008-03-14

So, here is what I have so far: @echo off echo Installing Windows XP Updates cmd >updatelog.txt WindowsXP-KB942615-x86-ENU.exe/passive/norestart/n WindowsXP-KB929123-x86-ENU.exe/passive/norestart/n WindowsXP-KB941202-x86-ENU.exe/passive/norestart/n WindowsXP-KB873339-x86-ENU.exe/passive/norestart/n WindowsXP-KB885836-x86-ENU.exe/passive/norestart/n WindowsXP-KB890046-x86-ENU.exe/passive/norestart/n WindowsXP-KB891781-x86-ENU.exe/passive/norestart/n WindowsXP-KB896358-x86-ENU.exe/passive/norestart/n WindowsXP-KB896428-x86-ENU.exe/passive/norestart/n WindowsXP-KB899591-x86-ENU.exe/passive/norestart/n WindowsXP-KB901017-x86-ENU.exe/passive/norestart/n WindowsXP-KB902400-x86-ENU.exe/passive/norestart/n WindowsXP-KB905749-x86-ENU.exe/passive/norestart/n WindowsXP-KB911562-x86-ENU.exe/passive/norestart/n WindowsXP-KB913580-x86-ENU.exe/passive/norestart/n WindowsXP-KB914389-x86-ENU.exe/passive/norestart/n WindowsXP-KB918118-x86-ENU.exe/passive/norestart/n WindowsXP-KB919007-x86-ENU.exe/passive/norestart/n WindowsXP-KB920670-x86-ENU.exe/passive/norestart/n WindowsXP-KB920685-x86-ENU.exe/passive/norestart/n WindowsXP-KB922819-x86-ENU.exe/passive/norestart/n WindowsXP-KB923414-x86-ENU.exe/passive/norestart/n WindowsXP-KB923980-x86-ENU.exe/passive/norestart/n WindowsXP-KB924496-x86-ENU.exe/passive/norestart/n WindowsXP-KB925902-x86-ENU.exe/passive/norestart/n WindowsXP-KB926436-x86-ENU.exe/passive/norestart/n WindowsXP-KB927802-x86-ENU.exe/passive/norestart/n WindowsXP-KB928843-x86-ENU.exe/passive/norestart/n WindowsXP-KB931261-x86-ENU.exe/passive/norestart/n WindowsXP-KB935839-x86-ENU.exe/passive/norestart/n WindowsXP-KB936021-x86-ENU.exe/passive/norestart/n WindowsXP-KB938829-x86-ENU.exe/passive/norestart/n WindowsXP-KB941644-x86-ENU.exe/passive/norestart/n WindowsXP-KB943460-x86-ENU.exe/passive/norestart/n WindowsXP-KB944653-x86-ENU.exe/passive/norestart/n WindowsXP-KB941569-x86-ENU.exe/passive/norestart/n WindowsXP-KB946627-x86-ENU.exe/passive/norestart/n WindowsXP-KB894391-x86-ENU.exe/passive/norestart/n WindowsXP-KB898461-x86-ENU.exe/passive/norestart/n WindowsXP-KB916595-x86-ENU.exe/passive/norestart/n WindowsXP-KB922582-x86-ENU.exe/passive/norestart/n WindowsXP-KB930916-x86-ENU.exe/passive/norestart/n WindowsXP-KB938828-x86-ENU.exe/passive/norestart/n WindowsXP-KB942840-x86-ENU.exe/passive/norestart/n WindowsXP-KB942763-x86-ENU.exe/passive/norestart/n WindowsXP-KB936357-x86-ENU.exe/passive/norestart/n WindowsXP-KB920872-x86-ENU.exe/passive/norestart/n WindowsXP-KB910437-x86-ENU.exe/passive/norestart/n WindowsXP-KB941569-x86-ENU.exe/passive/norestart/n WindowsXP-KB946026-x86-ENU.exe/passive/norestart/n WindowsXP-KB943485-x86-ENU.exe/passive/norestart/n WindowsXP-KB943055-x86-ENU.exe/passive/norestart/n WindowsXP-KB941568-x86-ENU.exe/passive/norestart/n WindowsXP-KB938127-x86-ENU.exe/passive/norestart/n WindowsXP-KB935840-x86-ENU.exe/passive/norestart/n WindowsXP-KB933729-x86-ENU.exe/passive/norestart/n WindowsXP-KB931784-x86-ENU.exe/passive/norestart/n WindowsXP-KB930178-x86-ENU.exe/passive/norestart/n WindowsXP-KB928255-x86-ENU.exe/passive/norestart/n WindowsXP-KB927779-x86-ENU.exe/passive/norestart/n WindowsXP-KB926255-x86-ENU.exe/passive/norestart/n WindowsXP-KB924667-x86-ENU.exe/passive/norestart/n WindowsXP-KB924270-x86-ENU.exe/passive/norestart/n WindowsXP-KB923191-x86-ENU.exe/passive/norestart/n WindowsXP-KB921503-x86-ENU.exe/passive/norestart/n WindowsXP-KB920683-x86-ENU.exe/passive/norestart/n WindowsXP-KB920213-x86-ENU.exe/passive/norestart/n WindowsXP-KB918439-x86-ENU.exe/passive/norestart/n WindowsXP-KB917344-x86-ENU.exe/passive/norestart/n WindowsXP-KB914388-x86-ENU.exe/passive/norestart/n WindowsXP-KB911927-x86-ENU.exe/passive/norestart/n WindowsXP-KB908519-x86-ENU.exe/passive/norestart/n WindowsXP-KB905414-x86-ENU.exe/passive/norestart/n WindowsXP-KB901214-x86-ENU.exe/passive/norestart/n WindowsXP-KB900725-x86-ENU.exe/passive/norestart/n WindowsXP-KB899587-x86-ENU.exe/passive/norestart/n WindowsXP-KB896423-x86-ENU.exe/passive/norestart/n WindowsXP-KB893756-x86-ENU.exe/passive/norestart/n WindowsXP-KB890859-x86-ENU.exe/passive/norestart/n WindowsXP-KB888302-x86-ENU.exe/passive/norestart/n WindowsXP-KB885835-x86-ENU.exe/passive/norestart/n WindowsXP-KB923789-x86-ENU.exe/passive/norestart/n WindowsXP-KB944533-x86-ENU.exe/passive/norestart/n WindowsXP-KB886185-x86-ENU.exe/passive/norestart/n WindowsXP-KB932168-x86-ENU.exe/passive/norestart/n This much I think is right. Any comments?

maryannr (author)2008-03-14

OK you guys, seem to know alot! How bout helpin a girl out here. I Want to make this Autopatcher. Anyone willing to help? I tried following the above instructions but got stuck. Is there a gentleman among you who will help? As you can see I'm a newbee and really need some advice. Looks like alot of typing to be done, so how bout showing me how to type it out right? ANYONE? Thanks

kevinroyalty (author)2007-11-14

You can also use WSUS v3 and a simple .REG file in combination so you don't have to download the patches more than once if you are into helping local friends/neighbors with their PC woes. I may have to post an instructable for this :)

vaiden (author)2007-08-21

This is a nice method. On the website below are instructions on how to make yourself a windows install cd with all of the latest hotfixes already integrated. It's a complicated process, but much easier than reinstalling windows the old fashioned way.

http://smithii.com/slipstream_xpsp2

dragovian (author)2007-07-21

dang ur good

kevincai96 (author)2007-06-17

This doesnt work for me... Can someone post an example script that works? Even better, with only the file dialer.exe which I am using. Please??!!?!!?!

trebuchet03 (author)2006-09-19

I wonder... is it possibly to streamline with batch commands? I really don't see why you would want to (considering its a one time deal) - but I'm just wondering :P

ceridan (author)trebuchet032006-09-20

I'm actually experimenting with that already to make 'restore' cd's for a few of my machines that I can update the windows on the fly during install and also install all the applications I use on them etc. Also trying to make the entire thing unattended so I can boot off the cd, format the hard drive, hit install windows and then ignore it. When I have ALL this sorted I'll probably be posting a very long instructable :)

ceridan (author)2006-09-20

Yes, it already has an updater. The Idea behind this one is so you can put it on a pen drive or on a file server on a local network so you can install all the patches up to the latest ones without using all your internet bandwidth. A machine installed from a Service Pack 2 CD will require over 130mb in patches, so if you had 10 machines that 1.3gb of downloading to do. Another way I use this is by having it on a pen drive if I'm out doing an external tech job and the person only has a dial up connection or really slow broadband I can just whack the pen drive in and it's done in 20 minutes without me having to sit there babysitting it.

twrex10 (author)2006-09-20

I use this almost every day at work. I work in a computer store where we build computers and sometimes we either have to load computers from scratch off disks or use older images. And when that happens this is the quickest and easiest way to add everything we need to the computer. I'll have to experiment with the winrar thing, that's a good idea.

RyanPotter (author)2006-09-19

This isn't a bad idea... I'm learning AutoIt v3 right now, and this would be perfect for it! I could even program it so when I download an update, anybody else who has the program and is connected to the internet will automatically download it too... But doesn't Microsoft already have an automatic updater?

About This Instructable

12,217views

8favorites

License:

More by ceridan:How to create an autopatcher for windows xp using batch files
Add instructable to: