Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > Windows Update Agent API - download links / installation

Reply
Thread Tools Display Modes

Windows Update Agent API - download links / installation

 
 
PaqDev
Guest
Posts: n/a

 
      03-04-2008
I am using the Windows Update Agent API and the WSUSSCN2.CAB file to scan for
missing updates on machines that do not have Internet access. The scans work
fine. Since I cannot use the WUA API to download and install the updates (no
Internet connection), I obtain the patch download links for the missing
updates via the WUA API. I then use these download links to download the
update installation files onto a server that has Internet access and then
copy the updates from this server to the machine that does not have Internet
access. I then simply shell out and execute the update files one at a time.

The problem I have is that the download links provided by the WUA API are
sometimes for CAB files rather than for EXE/MSI/MSU files. This occurs mostly
in Vista machines, but I have run across other cases. So, I cannot just
shell out to install these updates. I know that if I go to the Microsoft
site to manually download an update, I will get an EXE/MSI/MSU file rather
than a CAB file.

Is there some way to obtain the download links for EXE/MSI/MSU files via the
WUA API rather than the links for CAB files? Alternatively, is there some
way to get the installer in WUA API to install one of these CAB files by
providing a location on the local machine to which the CAB file was copied
without having to use the WUA API to actually perform the download? I have
not found anything in the WUA API documentation that deals with these
questions.
 
Reply With Quote
 
 
 
 
tear_of_love.310@hotmail.com
Guest
Posts: n/a

 
      03-04-2008


"PaqDev" wrote:

> I am using the Windows Update Agent API and the WSUSSCN2.CAB file to scan for
> missing updates on machines that do not have Internet access. The scans work
> fine. Since I cannot use the WUA API to download and install the updates (no
> Internet connection), I obtain the patch download links for the missing
> updates via the WUA API. I then use these download links to download the
> update installation files onto a server that has Internet access and then
> copy the updates from this server to the machine that does not have Internet
> access. I then simply shell out and execute the update files one at a time.
>
> The problem I have is that the download links provided by the WUA API are
> sometimes for CAB files rather than for EXE/MSI/MSU files. This occurs mostly
> in Vista machines, but I have run across other cases. So, I cannot just
> shell out to install these updates. I know that if I go to the Microsoft
> site to manually download an update, I will get an EXE/MSI/MSU file rather
> than a CAB file.
>
> Is there some way to obtain the download links for EXE/MSI/MSU files via the
> WUA API rather than the links for CAB files? Alternatively, is there some
> way to get the installer in WUA API to install one of these CAB files by
> providing a location on the local machine to which the CAB file was copied
> without having to use the WUA API to actually perform the download? I have
> not found anything in the WUA API documentation that deals with these
> questions.

 
Reply With Quote
 
Robert Aldwinckle
Guest
Posts: n/a

 
      03-05-2008
(cross-post added to WSUS)
"PaqDev" <> wrote in message
news:ACC76362-83C0-4BA6-BFF3-...
>I am using the Windows Update Agent API and the WSUSSCN2.CAB file to scan for
> missing updates on machines that do not have Internet access. The scans work
> fine. Since I cannot use the WUA API to download and install the updates (no
> Internet connection),



You don't need an Internet connection to network two PCs.



> I obtain the patch download links for the missing
> updates via the WUA API. I then use these download links to download the
> update installation files onto a server that has Internet access and then
> copy the updates from this server to the machine that does not have Internet
> access. I then simply shell out and execute the update files one at a time.



I suspect you are making things more difficult for yourself than you need to.
Cross-posting to WSUS.


Good luck

Robert Aldwinckle
---


>
> The problem I have is that the download links provided by the WUA API are
> sometimes for CAB files rather than for EXE/MSI/MSU files. This occurs mostly
> in Vista machines, but I have run across other cases. So, I cannot just
> shell out to install these updates. I know that if I go to the Microsoft
> site to manually download an update, I will get an EXE/MSI/MSU file rather
> than a CAB file.
>
> Is there some way to obtain the download links for EXE/MSI/MSU files via the
> WUA API rather than the links for CAB files? Alternatively, is there some
> way to get the installer in WUA API to install one of these CAB files by
> providing a location on the local machine to which the CAB file was copied
> without having to use the WUA API to actually perform the download? I have
> not found anything in the WUA API documentation that deals with these
> questions.



 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      03-05-2008

> "PaqDev" <> wrote in message
> news:ACC76362-83C0-4BA6-BFF3-...


>> I am using the Windows Update Agent API and the WSUSSCN2.CAB file to scan for
>> missing updates on machines that do not have Internet access. The scans work
>> fine. Since I cannot use the WUA API to download and install the updates (no
>> Internet connection),
>> I obtain the patch download links for the missing
>> updates via the WUA API. I then use these download links to download the
>> update installation files onto a server that has Internet access and then
>> copy the updates from this server to the machine that does not have Internet
>> access. I then simply shell out and execute the update files one at a time.


It may be worth investigating WSUS. Start here:

<http://technet.microsoft.com/en-us/wsus/default.aspx>

If you're determined to use the WUA API, it should be possible to
reverse-engineer the way the CAB files are installed. Look at the content from
a few of them and I'd guess it will be fairly obvious how to install them.

Harry.
 
Reply With Quote
 
PaqDev
Guest
Posts: n/a

 
      03-08-2008
Thanks for the reply.

I already had tried the "reverse-engineer" approach, but the WUA API
download object does a lot more than just download the CAB file. It creates
files and/or directories under the <Windows>\SoftwareDistribution\Download
directory that are anything but obvious, and it makes entries in a database
(<Windows>\SoftwareDistribution\DataStore\DataStor e.edb) concerning the
download for use by the WUA API installer object. Unfortunately, I haven't
found any documentation for any of this. I had hoped that in MS's new spirit
of open documentation, someone might have found something on this that I
haven't discovered.

Thanks again.

"Harry Johnston [MVP]" wrote:

>
> > "PaqDev" <> wrote in message
> > news:ACC76362-83C0-4BA6-BFF3-...

>
> >> I am using the Windows Update Agent API and the WSUSSCN2.CAB file to scan for
> >> missing updates on machines that do not have Internet access. The scans work
> >> fine. Since I cannot use the WUA API to download and install the updates (no
> >> Internet connection),
> >> I obtain the patch download links for the missing
> >> updates via the WUA API. I then use these download links to download the
> >> update installation files onto a server that has Internet access and then
> >> copy the updates from this server to the machine that does not have Internet
> >> access. I then simply shell out and execute the update files one at a time.

>
> It may be worth investigating WSUS. Start here:
>
> <http://technet.microsoft.com/en-us/wsus/default.aspx>
>
> If you're determined to use the WUA API, it should be possible to
> reverse-engineer the way the CAB files are installed. Look at the content from
> a few of them and I'd guess it will be fairly obvious how to install them.
>
> Harry.
>

 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      03-08-2008
PaqDev wrote:

> I already had tried the "reverse-engineer" approach, but the WUA API
> download object does a lot more than just download the CAB file. It creates
> files and/or directories under the <Windows>\SoftwareDistribution\Download
> directory that are anything but obvious, and it makes entries in a database
> (<Windows>\SoftwareDistribution\DataStore\DataStor e.edb) concerning the
> download for use by the WUA API installer object. Unfortunately, I haven't
> found any documentation for any of this.


No, it'll be an internal mechanism, subject to change.

The WUA API includes import and export functions; have you tried using these?

Harry.
 
Reply With Quote
 
PaqDev
Guest
Posts: n/a

 
      03-11-2008
I haven't found anything concerning import and export functions in the WUA
API documentation. I hate to be a pain, but can you point me someplace?
Thanks!

"Harry Johnston [MVP]" wrote:

> PaqDev wrote:
>
> > I already had tried the "reverse-engineer" approach, but the WUA API
> > download object does a lot more than just download the CAB file. It creates
> > files and/or directories under the <Windows>\SoftwareDistribution\Download
> > directory that are anything but obvious, and it makes entries in a database
> > (<Windows>\SoftwareDistribution\DataStore\DataStor e.edb) concerning the
> > download for use by the WUA API installer object. Unfortunately, I haven't
> > found any documentation for any of this.

>
> No, it'll be an internal mechanism, subject to change.
>
> The WUA API includes import and export functions; have you tried using these?
>
> Harry.
>

 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      03-12-2008
"Harry Johnston [MVP]" <> wrote in message
news:OgX$...
> PaqDev wrote:
>
>> I haven't found anything concerning import and export functions in the
>> WUA API documentation. I hate to be a pain, but can you point me
>> someplace? Thanks!

>
> I can't find the methods I was thinking of - perhaps they're gone, perhaps
> I'm looking in the wrong place - but these might (perhaps) present a
> solution:


Any documentation concerning import/export functionality of WSUS would be in
the =WSUS= SDK, not the WUA SDK.


--
Lawrence Garvin, M.S., MCBMSP, MCTS(x4), MCP
Senior Data Architect, APQC, Houston, Texas
Microsoft MVP - Software Distribution (2005-2008)

MS WSUS Website: http://www.microsoft.com/wsus
My Websites: http://www.onsitechsolutions.com;
http://wsusinfo.onsitechsolutions.com
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      03-13-2008
Lawrence Garvin [MVP] wrote:

>>> I haven't found anything concerning import and export functions in
>>> the WUA API documentation. I hate to be a pain, but can you point me
>>> someplace? Thanks!

>>
>> I can't find the methods I was thinking of - perhaps they're gone,
>> perhaps I'm looking in the wrong place - but these might (perhaps)
>> present a solution:

>
> Any documentation concerning import/export functionality of WSUS would
> be in the =WSUS= SDK, not the WUA SDK.


You're thinking of import/export of the WSUS database. We're talking about
packages on the client side.

I found the thread I was looking for, once I realised it was in
microsoft.public.security.baseline_analyzer rather than here. Turns out the
methods were CopyToCache and CopyFromCache; I was misremembering the names.

Harry.
 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      03-13-2008
Harry Johnston [MVP] wrote:

> I can't find the methods I was thinking of - perhaps they're gone,
> perhaps I'm looking in the wrong place - but these might (perhaps)
> present a solution:
>
> <http://msdn2.microsoft.com/en-us/library/aa386884(VS.85).aspx>
>
> <http://msdn2.microsoft.com/en-us/library/aa386101(VS.85).aspx>


I found the thread I'd been looking for. These are the references:

<http://msdn2.microsoft.com/en-us/library/aa386878(VS.85).aspx>

<http://msdn2.microsoft.com/en-us/library/aa386101(VS.85).aspx>

Seems I'd misremembered the method names so I was looking for the wrong thing.

The documentation doesn't really make it clear exactly how these methods
interact with the rest of the system or what their intended purpose is, so I'm
unsure whether they'll be useful or not.

... if you do get this working, I for one would be very interested to hear
about it, and to see the code if you are willing to release it.

Harry.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows update download and installation failures Domenic Windows Update 15 07-14-2009 09:36 PM
Windows Update driver download & installation issues... MMc-Face9 Windows Vista Hardware 8 07-03-2007 04:00 PM
Windows Update...search & download OK...installation fails... Brimstone Windows Update 8 04-23-2007 03:57 AM
Windows Update Agent Installation failure Matthias Edegger Windows Update 1 07-18-2006 12:57 AM
Windows Update Agent installation failure Matthias Edegger Windows Update 2 07-03-2006 10:21 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59