WUA API Update DownloadContents collection empty for software updates  
Author Message
allan





PostPosted: Fri Jun 30 14:00:45 CDT 2006 Top

Windows XP Update >> WUA API Update DownloadContents collection empty for software updates Hello,

Using WUA API in C++, I am trying to retrieve the download location for
each update using the DownloadContents collection property. This works
great for driver updates: they tend to have one UpdateDownloadContent
object, which contains a DownloadUrl property. However, software
updates return an empty DownloadContents collection.

Does anybody know why this might be? Is there another way to retrieve
the update download location?

Thanks so much,
Jill

Windows XP369  
 
 
Oscar





PostPosted: Fri Jun 30 14:00:45 CDT 2006 Top

Windows XP Update >> WUA API Update DownloadContents collection empty for software updates Hi

It may be that you have to look at the update's child updates to get the
download content, since updates are bundled and the actual bundle won't have
download content.
Try to use Update.BundledUpdates to access the child updates and then
retrieve the download content.

--
Oscar Lee (MSFT)
Microsoft Corporation
WSUS
EMail@HideDomain.com
(Communication using the newsgroup is preferred. Thanks!)

=====================
This posting is provided "AS IS" with no warranties, and confers no rights.
=====================
"spill" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hello,
>
> Using WUA API in C++, I am trying to retrieve the download location for
> each update using the DownloadContents collection property. This works
> great for driver updates: they tend to have one UpdateDownloadContent
> object, which contains a DownloadUrl property. However, software
> updates return an empty DownloadContents collection.
>
> Does anybody know why this might be? Is there another way to retrieve
> the update download location?
>
> Thanks so much,
> Jill
>


 
 
spill





PostPosted: Fri Jun 30 17:38:19 CDT 2006 Top

Windows XP Update >> WUA API Update DownloadContents collection empty for software updates That did the trick Oscar, thanks!! :)

Oscar Lee (MS) wrote:
> Hi
>
> It may be that you have to look at the update's child updates to get the
> download content, since updates are bundled and the actual bundle won't have
> download content.
> Try to use Update.BundledUpdates to access the child updates and then
> retrieve the download content.
>
> --
> Oscar Lee (MSFT)
> Microsoft Corporation
> WSUS
> EMail@HideDomain.com
> (Communication using the newsgroup is preferred. Thanks!)
>
> =====================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> =====================
> "spill" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> > Hello,
> >
> > Using WUA API in C++, I am trying to retrieve the download location for
> > each update using the DownloadContents collection property. This works
> > great for driver updates: they tend to have one UpdateDownloadContent
> > object, which contains a DownloadUrl property. However, software
> > updates return an empty DownloadContents collection.
> >
> > Does anybody know why this might be? Is there another way to retrieve
> > the update download location?
> >
> > Thanks so much,
> > Jill
> >