3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to create an autopatcher for windows xp using batch files

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 :)
 
Remove these adsRemove these ads by Signing Up
 

Step 1All 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 :)
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Feb 14, 2009. 9:44 PMbmazing says:
a much easier way to do patch all files is windows auto patcher
Oct 10, 2008. 3:14 PMFoaly7 says:
(Don't reply rudely, I am still adding to my vast expanse of computer software knowledge) What is an autopatcher anyway?
Jun 5, 2008. 2:03 PMCameron100 says:
Do you have to put the downloads in a new foler or just any folder?
Mar 14, 2008. 11:55 AMmaryannr says:
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
Mar 14, 2008. 11:47 AMmaryannr says:
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?
Mar 14, 2008. 11:44 AMmaryannr says:
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
Mar 14, 2008. 11:41 AMmaryannr says:
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?
Mar 14, 2008. 9:33 AMmaryannr says:
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
Nov 14, 2007. 12:41 PMkevinroyalty says:
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 :)
Aug 21, 2007. 6:37 PMvaiden says:
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
Jul 21, 2007. 6:01 AMdragovian says:
dang ur good
Jun 17, 2007. 3:43 PMkevincai96 says:
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??!!?!!?!
Sep 19, 2006. 10:56 PMtrebuchet03 says:
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
Sep 20, 2006. 6:55 AMtwrex10 says:
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.
Sep 19, 2006. 9:33 PMRyanPotter says:
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?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:ceridan