MSFN Forum: BatchPatcher Downloader - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

BatchPatcher Downloader Version 1.00 (a Windows Update patch downloader) Rate Topic: -----

#1 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 18 February 2011 - 04:08 PM

(Changed title, thread has gone beyond my questions to sharing this app I've been working on)

I've been working on downloading offline updates and have just about gotten where I want to go with the project. The only other thing that confuses me a little is locating some updated things that seem to be laying outside of what Windows/Microsoft Update presents which gets updated. I'm looking to automate that.

For example:
1) Microsoft Security Essentials definition updates show up in Microsoft Update, *but* they are delta/difference files which don't do too well if you want to offline update a fresh copy of MSE. That's fine to a point, but if you wanted the full offline update you would have to download it. I do have two links (32-bit - http://go.microsoft....342&clcid=0x409 64-bit - http://go.microsoft....341&clcid=0x409 ), but does the latest version always show up there? What does the 0x409 mean? Does that change, and for what reason?

2) Windows Update Agent doesn't ever show up in the site results, but gets updated. I know what they say about downloading the CAB to get the URL, but I have a link like the ones above for this. Same question: Would I always find the most updated version there? Probably the only way to check for a new version I guess is to get the CAB file and process it?

Also, are there any other files like this that I'm not thinking of?

Outside of that, what are PSF files and why would I want them?

This post has been edited by Glenn9999: 29 November 2011 - 08:40 AM



#2 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 954
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 18 February 2011 - 10:54 PM

View PostGlenn9999, on 18 February 2011 - 04:08 PM, said:

What does the clcid=0x409 mean? Does that change, and for what reason?

That is the locale/language code. 0x409 = United States, English.

View PostGlenn9999, on 18 February 2011 - 04:08 PM, said:

does the latest version always show up there?

If it's anything like similar links I've seen, the answer should be "yes." But I can't tell you for certain in this case since I don't use MSE.

For the Windows Update Agent I usually check the download links at KB949104. The latest so far can be found at KB982010, but the Windows Update website and the Automatic Update mechanism do not update machines to this version yet.

This post has been edited by 5eraph: 18 February 2011 - 11:14 PM


#3 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 18 February 2011 - 11:55 PM

View Post5eraph, on 18 February 2011 - 10:54 PM, said:

That is the locale/language code. 0x409 = United States, English.


Thanks. I wasn't used to seeing the number in hex. Usually, Microsoft uses decimal notation (US English = 1033). I got that one figured out, and should be able to automate this part.

View Post5eraph, on 18 February 2011 - 10:54 PM, said:

but the Windows Update website and the Automatic Update mechanism do not update machines to this version yet.


Probably just a special version to fix the specific problem? Although, the file I got from 982010 is the one I have installed. Looks like, though, that I could check for WU_E_SELFUPDATE_REQUIRED and fire up the link I have on hand (x86 one at least) if it happens. But then again, I have it as a manual process anyway (the user has to click on it), so that might not matter. I need to figure out how to uninstall WUA in order to test this (or get a very old version and use /WUFORCE? ), though.

Edit: For those that want to know, the links I have for WUA are:
x86 - http://go.microsoft....k/?LinkId=43264

Thanks for the help! Any other constructive thoughts are always welcome!

This post has been edited by Glenn9999: 19 February 2011 - 12:10 AM


#4 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 22 February 2011 - 01:51 PM

View PostGlenn9999, on 18 February 2011 - 04:08 PM, said:

I've been working on downloading offline updates and have just about gotten where I want to go with the project.


Current test version if anyone is interested.

This post has been edited by Glenn9999: 14 March 2011 - 12:07 PM


#5 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 954
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 22 February 2011 - 08:18 PM

Seems to work well for me too on XPx64. The only suggestion I can presently offer is to consider adding a "Working" indicator of some sort. On first run I had begun to think that the program had frozen—it had taken about 15-20 seconds to complete.

#6 User is offline   uid0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 348
  • Joined: 12-June 06

Posted 23 February 2011 - 07:16 AM

A bare .exe? What does it do, what's the licence, can we see the source? :)

#7 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 23 February 2011 - 10:03 AM

View Post5eraph, on 22 February 2011 - 08:18 PM, said:

The only suggestion I can presently offer is to consider adding a "Working" indicator of some sort. On first run I had begun to think that the program had frozen—it had taken about 15-20 seconds to complete.


Definitely going on the list. Microsoft doesn't provide a progress indicator in Windows Update (i.e. 25% complete) for search operations. I'll probably just move the progress bar on the wait cycle. Personally I know it's searching when the controls are disabled, but good to do it :)

View Postuid0, on 23 February 2011 - 07:16 AM, said:

A bare .exe? What does it do, what's the licence, can we see the source? :)


Meant to get documentation in the text, but didn't. The documentation is in Help/About, though. Probably can make a CHM if it gets complex enough.

1) It queries Windows Update (like the site and automatic updates does) and locates the updates listed there. But instead of doing the normal Windows Update install thing (which uses the CAB links generally), it downloads the URLs indicated there to disk as the user indicates.
2) Same as the Batch Patcher thing. As long as you don't mess with the EXE itself, I don't care where or how you use it. But as the docs say, no guarantees, etc. Since it's a work in progress at the moment (especially since I don't know if Vista or 7 will choke on it yet), I'd rather not have large scale distribution, at least not until it's completed. This program basically has the same intention and reason as Batch Patcher does for me. A portable way to perform small scale automation of the installation of patches with a minimum of trouble. Part of the reason I put it here at this point is so I can get good constructive suggestions like written above.
3) At this point, source is kind of pointless since I've been working on it for a few months and changing a number of things. But probably eventually once I'm sure everything is reasonably stable I can share the whole WUAPI library code I have.

This post has been edited by Glenn9999: 23 February 2011 - 10:05 AM


#8 User is offline   hs2n 

  • Group: Members
  • Posts: 7
  • Joined: 31-August 09

Posted 24 February 2011 - 04:07 AM

The /download_to or /download_cache option of WuInstall (http://www.wuinstall.com) does about the same, download_to copies from the internal cache, download_cache uses the URLs as you do.

Trial version can be downloaded from there, maybe you are interested in comparing results.

Your question about the psf-Files: we found that they are not neccessary for the updates to be installed, so WuInstall skips them

#9 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 24 February 2011 - 10:06 AM

View Posths2n, on 24 February 2011 - 04:07 AM, said:

The /download_to or /download_cache option of WuInstall (http://www.wuinstall.com) does about the same, download_to copies from the internal cache, download_cache uses the URLs as you do.

Trial version can be downloaded from there, maybe you are interested in comparing results.


Thanks for the tip. I had a look at the program, it works well. I like the unattended/automate functionality of it, and was planning on doing that with what I posted (as Batch Patcher is). I wasn't previously aware of it, so it'll be a good reference point. The other program packages I was aware of have numerous problems and drawbacks for my purposes, so part of making things for my personal use is addressing those (along with learning about stuff, I pretty well got the WUAPI functionality worked out). As any hobbyist project I do, I almost always share if I think someone else has interest, and this likely does.

As for functionality, there is one thing I have yet to figure out from using Windows Update directly (or the offine scanner file) and will likely try to figure that out before I call my WUAPI code done: How to find out what patches are deprecated by newer ones. I'm sure that can be figured out when the time comes.

Quote

Your question about the psf-Files: we found that they are not neccessary for the updates to be installed, so WuInstall skips them


I gathered in research that CAB files are used by the Windows Update Site and PSF files are used by WSUS. I know about the WU site, but I don't know enough about WSUS to know whether downloading those files separately would be an interesting option or not.

#10 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 14 March 2011 - 12:09 PM

For those who are interested, I did an update of the file downloader I posted earlier. Posted below is version 0.05 beta.

Changes from 0.04 beta
----------------------------
1) Finished out the Special Downloads Section. Windows Update Agent now downloads according to the proscribed Microsoft manner and should always produce the latest version of the updater.
2) You can get the currently installed Windows Update Agent version in the Help submenu.
3) Per suggestion, now the progress bar moves while the program retrieves the Windows Update List.
4) Cleaned up a number of things.

This post has been edited by Glenn9999: 26 March 2011 - 04:55 PM


#11 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 26 March 2011 - 04:59 PM

For those who are interested, I did an update of the file downloader I posted earlier. Posted below is version 0.06 beta.

Changes from 0.05 beta
----------------------------
1) Moved the Windows Update Agent version listing to the About & documentation menu.
2) Added more detailed data including URLs to the data list function.
3) Added Security Bulletin to the report data and detail data (For example KB2483614 is security bulletin MS11-017).
4) Gave the project the unofficial name of BatchPatcher Downloader, for lack of a better name. Several places now reflect this. An icon will be generated soon as well as a name change of the executable.
5) Added initial functionality of Bookmarks or URL downloads accessible through the menu. These are read from the file GETNEWSTUFF.INI, which a sample should be included and the format obvious. Changes within the program will come. In addition, the WSUS Offline Scanner download was moved to the BookMarks section.

This post has been edited by Glenn9999: 04 May 2011 - 09:08 PM


#12 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 04 May 2011 - 09:07 PM

0.07 beta.
--------------
Changed code to use WinHTTP instead of WinInet. Should be a little more versatile by what I've gathered.

This post has been edited by Glenn9999: 03 June 2011 - 02:22 AM


#13 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 03 June 2011 - 02:27 AM

I revised the downloader. I got one or two feature ideas left and then will just try to bug fix and finish it up.

Changes from 0.07 beta
----------------------------
1) Bookmark editor menu added.
2) Cleaned up a number of things.
3) A specific icon was generated for the executable as well as a name change.

This post has been edited by Glenn9999: 19 July 2011 - 09:03 PM


#14 User is offline   centi50 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 25-January 10

Posted 21 June 2011 - 06:40 PM

How do you start scanning your system for missing updates. Please give guide


Thanks

#15 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 21 June 2011 - 06:57 PM

View Postcenti50, on 21 June 2011 - 06:40 PM, said:

How do you start scanning your system for missing updates. Please give guide


When you run it, click the "Get URL List" button. It should pop up what updates are missing. Click the "Installed" box if you want it to show you what has been installed when you click "Get URL List".

FYI, As for Windows Vista or 7, I haven't been able to test it there, so I don't know what kind of results you would get there. Feel free to try it though.

This post has been edited by Glenn9999: 21 June 2011 - 06:57 PM


#16 User is offline   centi50 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 25-January 10

Posted 21 June 2011 - 09:47 PM

Thank you Very Much Glenn9999.

You've Solved my Problem which i've been having and searching for along long time. You are an Angel sent to save me.

I recommend this software to anyone who wants to update there computers and use the downloaded file to update other Pc's.

I tried it on My win 7 and XP and i found it ok if you compared it to windows update agent.

It would be great if it could be showing the size of each of the updates found and the option to hide updates and Missing Updates installation. but still best software for updating system that i've come across.


Two Thumbs Up.

This post has been edited by centi50: 22 June 2011 - 06:40 AM


#17 User is offline   centi50 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 25-January 10

Posted 28 June 2011 - 01:12 PM

The BatchPatcher Downloader Could not download this updates for win 7 x64 i dont know why. It listed as found updates and it was correct when i compared it with win7 update Agent, But it could not download. the Updates are

Update for Windows 7 for x64-based Systems (KB2545698)
Update for Windows 7 for x64-based Systems (KB2547666)
Update for Windows 7 for x64-based Systems (KB2552343)

All the above updates dated 2011-06-28

Help will be much Appreciated

#18 User is offline   centi50 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 25-January 10

Posted 28 June 2011 - 01:33 PM

When i Run Batchpatcher Downloader on Win XP SP2 I get "Access violation at address 0043AEAD in Module "batdownloader.exe" Read of Address 00000008. and after clicking ok another box appears withe Message "Class not registered".

Then when when i click Get URL List nothing happens.

Please help

#19 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 28 June 2011 - 02:05 PM

View Postcenti50, on 28 June 2011 - 01:33 PM, said:

When i Run Batchpatcher Downloader on Win XP SP2 I get "Access violation at address 0043AEAD in Module "batdownloader.exe" Read of Address 00000008. and after clicking ok another box appears withe Message "Class not registered".


The app uses MSXML 6.0 for a couple of functions. Do you have that installed?

#20 User is offline   Glenn9999 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 628
  • Joined: 23-April 07

Posted 28 June 2011 - 02:06 PM

View Postcenti50, on 28 June 2011 - 01:12 PM, said:

The BatchPatcher Downloader Could not download this updates for win 7 x64 i dont know why. It listed as found updates and it was correct when i compared it with win7 update Agent, But it could not download. the Updates are

Update for Windows 7 for x64-based Systems (KB2545698)
Update for Windows 7 for x64-based Systems (KB2547666)
Update for Windows 7 for x64-based Systems (KB2552343)

All the above updates dated 2011-06-28

Help will be much Appreciated


What shows up for these when you save the list to text file (File/Save List)?

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy