Hi there,
I'm using the WUA APIs to search for available upates. The code I use is
Set us = CreateObject("Microsoft.Update.Session")
Set Updates = CreateObject("Microsoft.Update.UpdateColl")
Set Download = us.CreateUpdateDownloader()
Set usearch = us.CreateUpdateSearcher()
Set usresult = usearch.Search("Type='Software' )
Set ourUpdate = usresult.Updates.Item(0)
ourUpdate.AcceptEula
Updates.Add (ourUpdate)
Download.Updates = Updates
Set result = Download.Download()
and it's workig wery well. I get the packages needed to be installed, I can
download them and install them.
My questions are:
- how can I see if a package is language dependent or not. E.g. when the
package for let's say update KB123456 is to be downloaded/installed it will
download/install the english version if I do this from an English version of
Windows XP and it will download/install the german version of the upate if I
do this from the german version of Windows XP. The upate ID (in the IUpdate
COM interface) is the same for both updates however the content downloaded
is different. IUpdate.Languages does not tell me so much...
- when the update is downloaded I can get the whole content of the files
downloaded. I saw that for each update a directory (or a file) with a funny
name is created. Is this file name (directory name) unique for each update
and each language? E.g. for XP SP2 English the directory downloaded has a
different name than the one for XP SP2 German (but the update IDs in IUpdate
are the same!).
In other words I want to collect all the files downloaded for each update
(from the ...\SoftwareDistribution\Download directory) and distinguish them
for each update (here I can use the Update ID) and language (no idea how to
do it here).
Thanks for you support.
--
--------------------------------------------------------------------------
Dorel Sturm
Germany
|