I now present to you, an Autopatcher Replacement


Recommended Posts

I’m Proud to announce an autopatcher replacement. The Process isn’t as automated as autopatcher, this is to say you can’t just download one big file and have all the updates. Though that same luxury is what got autopatcher spanked in the first place.

The new process will require you to create your own file, but once you do you can reuse the file on many newly installed XP machines.

This new process has to do with the windows softwaredistribution folder (C:\windows\softwaredistrubution). This is the location where windows stores the automatic updates before it installs them. This is what the process entails. First create a fresh install of XP (preferable in vmware) set automatic updates to “Download updates for me, but let me choose when to install them”. Then wait until all 82 updates have been downloaded but do not install them. You then copy the contents of the softwaredistribution folder to a desired location and create a self extracting zip of the folder called “xpupdates.exe” that automatically extracts to c:\windows\softwaredistrubution. Once done you can use that self extracting exe on any fresh install XP machines requiring updates.

So is this just like autopatcher, well no!. But it will take you less than a few mins to implement and save you alot of downloading time for windows XP updates. Installing all 82 updates on a machine with 256 megs of ram took all of 7 mins, in comparison to autopatcher that took 30 + mins

The process does require an internet connection just to say "hey what up" to the automatic update server, but then again if the computer didn't have an internet connection then the security updates wouldn't be that important anyway.

The updates being acquired are done so on machines that haven't even been activated let a lone validated, so these are updates any computer has access to, and you would not be bypassing WGA validation.

I’d recommend putting that file on a thumbstick or a cd. When you are ready to update an XP machine you are going perform the following tasks

1) Set the automatic update to “Download updates for me, but let me choose when to install them”

2) Stop the automatic update service via services.msc

3) Delete the contents of the software distribution folder

4) Extract xpupdates.exe

5) Turn automatic updates back on

6) Run a script which tells automatic updates to check for updates

Once windows checks for updates it will see there are updates available, but it will also see they are already on the machine, and will just prompt you to install them, without having to download anything.

Instead of having to complete the following tasks on a new machine, I’ve tried simplifying the process via a batch file. All that is required of you is that you have a file called xpupdates.exe on any mountable media with all the updates you with to apply.

Below is the batch file code

And the actual batch file

@echo off

cls

Echo Welcome to the Neowin.net XP softwaredistrubution updater

Echo This process will Stop the Automatic Update service, clear the softwaredstrubution folder, copy the new updates to the software distrubution folder, then restart the automatic update service and force automatic updates to check for updates

Echo When you are ready to begin

Pause

cls

echo Stopping the Automatic Update Service

net stop wuauserv

cls

echo deleting contents of the softwaredistrubution folder

rd C:\windows\SoftwareDistribution\authcabs /s /q

rd C:\windows\SoftwareDistribution\datastore /s /q

rd C:\windows\SoftwareDistribution\download /s /q

rd C:\windows\SoftwareDistribution\selfupdate /s /q

del C:\windows\SoftwareDistribution\ /q

cls

set /p drive=Please enter the drive letter where the updates are located (example d:) :

%drive%\updates\xpupdates.exe

cls

net start wuauserv

wuauclt /detectnow

@echo off

Echo This AU client will now check for the Updates on the Local WSUS Server.

Pause

The batch file will be presented as Neowin.net if that works for all of you?

the batch file has not been thoroughly tested, so I need you guys to help me test it, and if you want to add new things to it, please post your ideas in this thread, and together we can make a really great autopatcher replacement.

also any idiots out there that feel it their duity to rate this thread a 1 star, please leave a comment and share your opinions

Here is a video explaining how this process works http://www.vidilife.com/index.cfm?f=media....9C6-47FB-8503-C

autoupdate.zip

Edited by warwagon

ya I pretty much suck at coding, i'm surprised I even got it working thus far. So if anyone could write some code that could detect if the file isn't there and restart the service and just exit

First portion of the VBS code is this:

Const wshYes = 6
Const wshNo = 7
Const wshYesNo = 4
Const wshinformation = 64
Const wshOkOnly = 0

Set objShell = CreateObject("Wscript.Shell")

Start=objShell.Popup("Welcome to the Neowin.net XP software distrubution updater. This Program makes changes to the Windows Update System. Do you wish to continue?", 10, "Auto Update by Warwagon", wshYesNo+wshInformation)

If Start = wshNo Then

Wscript.Quit

Else If Start = wshYes Then

Start=objShell.Popup("Stopping Windows Update Service, Please wait...", 01, "Auto Update by Warwagon", wshOKOnly+wshInformation)
objShell.Run ("net stop wuauserv"),,True

Start=objShell.Popup("Deleting contents of Software distribution folder, Please wait...", 01, "Auto Update by Warwagon", wshOKOnly+wshInformation)
objShell.Run ("cmd /c rd C:\windows\SoftwareDistribution\authcabs /s /q"),,True
objShell.Run ("cmd /c rd C:\windows\SoftwareDistribution\datastore /s /q"),,True
objShell.Run ("cmd /c rd C:\windows\SoftwareDistribution\download /s /q"),,True
objShell.Run ("cmd /c rd C:\windows\SoftwareDistribution\selfupdate /s /q"),,True
objShell.Run ("cmd /c del C:\windows\SoftwareDistribution\ /q"),,True

Wscript.quit

End If
End If

If i get time i will write the rest of the code soon for you.

OK, i have updated the version from above, because it had an error if the file was not on the drive you specified.

The new script will allow the user to enter the full location of any file name, so instead of looking specifically for xpupdates.exe, you could call it teh_haxord_updates.exe and so long as you point it to that file, it will run it.

If it does not find the file you specified, it will give you an error and allow you to specify the location again. You have 3 tries, after which you will need to re-run the script in order to try again.

You can run the script on any version of windows that has windows updates on it that allows scripts to run.

Please let me know if you find any errors or have any change requests with the script and i will be pleased to help.

Point of note: use the environment variable %WINDIR% to get around "Windows not installed on C:" difficulties (right-click My Computer --> Properties: Advanced tab --> Environment Variables button to see your own). Installations don't have to be on C:, or even in a directory called "windows".

You could even use %COMSPEC% to get an absolute path to cmd.exe...

Point of note: use the environment variable %WINDIR% to get around "Windows not installed on C:" difficulties (right-click My Computer --> Properties: Advanced tab --> Environment Variables button to see your own). Installations don't have to be on C:, or even in a directory called "windows".

You could even use %COMSPEC% to get an absolute path to cmd.exe...

That is a good point mate. I never thought of that.

Ill correct it and upload an updated version.

Its only a simple script mate. Not a lot to close really. Anyone with a little knowledge of windows scripting could make this.

Well you didn't, so give the author his credit. Nice work on being another garden variety jackass in Neowin.

Well you didn't, so give the author his credit. Nice work on being another garden variety jackass in Neowin.

Actually i did.

Of course you ran the script before making that comment about me, right? ;) As you made yourself look foolish with the comment, ill let it slip and not report you for directly insulting a fellow member this time ;)

He did actually,

Cheers for backing me up there mate. :)

I am assuming you are talking about yourself

Lol. Quite :rofl:

Here is an update version which points to %windir% instead of C:\. Should sort out a few issues with the script :)

This one is not encrypted. I dont see the point now seeing as scripts are so easy to decrypt and there is no big secret in the scripting :)

Good work Rich

If even 1 person finds this method helpful then it'll be all worth it

Yep.

If people could download, try and present their feedback that would be cool. I'm looking to make it more friendly, by adding a feature which will download the updates from Windows Update, compile them to a ZIP or EXE file and will do all the necessary as well.

I'm then looking to convert all the information to VB (when i learn how ;)). So it will be an executable

Yep.

If people could download, try and present their feedback that would be cool. I'm looking to make it more friendly, by adding a feature which will download the updates from Windows Update, compile them to a ZIP or EXE file and will do all the necessary as well.

I'm then looking to convert all the information to VB (when i learn how ;)). So it will be an executable

ya there are a bunch of good programmers on this site, if only a 1 of them would take your wonderful script and turn it into VB

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I don't hate the new menus, I am not a fan of the lack of features and how they went live when they clearly are not complete. The menu itself presents much better than the previous - but what's lacking (IMO) is: 1) Any kind of automated manipulation such as: "this goes on the new menu because you use this feature more often on this filetype" "this is rarely used and will fall back to the old menu" 2) Any kind of user manipulation such as: "a UI to add/remove/order items to the new menu"
    • The biggest issue in this version of Win 11 context menu, from usability standpoint, is the movable row with basic commands. Think of a car analogy...if You turn the week left the infotainment screen will move right and vice versa. With how it works now Microsoft made something forbidden in designing in any UI, software or hardware. I can't grasp who were the morons within Microsoft suggesting it was a good idea and gave it a green light.
    • LibreOffice 26.2.4 by Razvan Serea LibreOffice is the free power-packed Open Source personal productivity suite for Windows, Macintosh and Linux, that gives you six feature-rich applications for all your document production and data processing needs: Writer, Calc, Impress, Draw, Math and Base. Support and documentation is free from our large, dedicated community of users, contributors and developers. You, too, can also get involved! Choosing Between LibreOffice Still and LibreOffice Fresh: LibreOffice Still is a good choice if you value stability, a longer support cycle, and a more conservative approach to software updates. It's suitable for businesses and organizations where reliability and compatibility are crucial. LibreOffice Fresh is ideal if you're an enthusiast or an early adopter who wants to stay on the cutting edge of LibreOffice development and is willing to accept more frequent updates and occasional minor issues. Features: Writer is the word processor inside LibreOffice. Use it for everything, from dashing off a quick letter to producing an entire book with tables of contents, embedded illustrations, bibliographies and diagrams. The while-you-type auto-completion, auto-formatting and automatic spelling checking make difficult tasks easy (but are easy to disable if you prefer). Writer is powerful enough to tackle desktop publishing tasks such as creating multi-column newsletters and brochures. The only limit is your imagination. Calc tames your numbers and helps with difficult decisions when you're weighing the alternatives. Analyze your data with Calc and then use it to present your final output. Charts and analysis tools help bring transparency to your conclusions. A fully-integrated help system makes easier work of entering complex formulas. Add data from external databases such as SQL or Oracle, then sort and filter them to produce statistical analyses. Use the graphing functions to display large number of 2D and 3D graphics from 13 categories, including line, area, bar, pie, X-Y, and net - with the dozens of variations available, you're sure to find one that suits your project. Impress is the fastest and easiest way to create effective multimedia presentations. Stunning animation and sensational special effects help you convince your audience. Create presentations that look even more professional than the standard presentations you commonly see at work. Get your collegues' and bosses' attention by creating something a little bit different. Draw lets you build diagrams and sketches from scratch. A picture is worth a thousand words, so why not try something simple with box and line diagrams? Or else go further and easily build dynamic 3D illustrations and special effects. It's as simple or as powerful as you want it to be. Base is the database front-end of the LibreOffice suite. With Base, you can seamlessly integrate into your existing database structures. Based on imported and linked tables and queries from MySQL, PostgreSQL or Microsoft Access and many other data sources, you can build powerful databases containing forms, reports, views and queries. Full integration is possible with the in-built HSQL database. Math is a simple equation editor that lets you lay-out and display your mathematical, chemical, electrical or scientific equations quickly in standard written notation. Even the most-complex calculations can be understandable when displayed correctly. E=mc2. LibreOffice also comes configured with a PDF file creator, meaning you can distribute documents that you're sure can be opened and read by users of almost any computing device or operating system. LibreOffice also comes configured with a PDF file creator, meaning you can distribute documents that you're sure can be opened and read by users of almost any computing device or operating system. Download: LibreOffice 64-bit | LibreOffice 32-bit ~300.0 MB (Open Source) View: LibreOffice Website | Screenshot | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Amazon eero Pro 6E mesh Wi-Fi system 2-pack is 27% off by Ivan Jenic The Amazon eero Pro 6E mesh Wi-Fi system is currently $239.99 on Amazon for the 2-pack, down from $329.99. That's 27% off and $90 saved for a solid Wi-Fi solution that covers your entire home (purchase link down below). The 2-pack covers up to 4,000 square feet (372 square meters) and supports 100+ connected devices, which handles the vast majority of home setups without breaking a sweat. Wi-Fi 6E brings access to the 6 GHz band for lower latency across the network, and the 2.5 Gb Ethernet port supports gigabit+ internet plans if your ISP offers them. eero's TrueMesh technology handles traffic routing automatically, so you're not manually managing which devices connect to which node. You set up the entire thing through the eero app, and the entire process takes a few minutes. The system also receives automatic security updates in the background, so once you set it up, you don't have to worry about compatibility issues. If you're covering a larger home or want more nodes, the 3-pack is $329.99 and the 4-pack is $479.98, both at similar discount levels. It's worth mentioning that a newer model exists, which is likely the reason for the discount, but the Pro 6E is still perfectly capable hardware for most homes. Amazon eero Pro 6E mesh Wi-Fi system 2-pack - $239.99 | 27% off on Amazon This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Week One Done
      I2D earned a badge
      Week One Done
    • Week One Done
      Dr Jared Dental Studio earned a badge
      Week One Done
    • Week One Done
      RG INVESTMENT GROUP earned a badge
      Week One Done
    • Very Popular
      The Norwegian Drone Pilot earned a badge
      Very Popular
    • Very Popular
      s0nic69 earned a badge
      Very Popular
  • Popular Contributors

    1. 1
      +primortal
      484
    2. 2
      PsYcHoKiLLa
      258
    3. 3
      Skyfrog
      84
    4. 4
      FloatingFatMan
      64
    5. 5
      Michael Scrip
      63
  • Tell a friend

    Love Neowin? Tell a friend!