473,516 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Update Agent API and other OSes

Hello,

I'm having a little trouble with the Windows Update Agent API
(WUApiLib). I've got code working that pulls back a list of updates
from Microsoft, but they're specific to the system I'm running the
code on. I'm trying to figure out how to get the data for another
system. For example, I'd like to run the application on a Vista
system and get the updates for a Windows Server 2003 system. I've
looked at the ClientApplicationID property of the IUpdateSession
object, but it's always null.

I saw this post [http://groups.google.com/group/
microsoft.public.dotnet.general/browse_thread/thread/c8e7fc65ca13cdce/
dd31cc88e2543589?hl=en&lnk=st&q=WUApiLib
+ClientApplicationID#dd31cc88e2543589] asking the same question that I
am, but there was no response.

Does anyone have an idea of how to do this?

Here is working code (C#) that populates a listbox on a winform:
UpdateSessionClass updateSession = new UpdateSessionClass();
IUpdateSearcher updateSearcher =
updateSession.CreateUpdateSearcher();
ISearchResult searchResult = updateSearcher.Search(textBox1.Text);

for (int i = 0; i < searchResult.Updates.Count; i++)
{
string KBs = string.Empty;
IUpdate update = searchResult.Updates[i];
UpdateCollection coll = update.BundledUpdates;
for (int iu = 0; iu < coll.Count; iu++)
{
IUpdateDownloadContent content = coll[iu].DownloadContents[0];
foreach (string s in update.KBArticleIDs)
{
KBs = s + ",";
}

string title = string.Format("{0,-75}", update.Title);
string url = content.DownloadUrl != null ? content.DownloadUrl :
"No URL";
string displaystring = string.Format("KB: {0} Title: {1} Url:
{2}",KBs,title,url);
listBox1.Items.Add(displaystring);
}
}

Any thoughts or insight would be greatly appreciated,
Brian
Jun 27 '08 #1
0 1555

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2718
by: Jeffrey Haun | last post by:
I seems to me that in order for microsoft to survive past the windows os, that they need to support DOT.NET on other platforms. Wasn't this the rationel for DOT.NET in the first place, To break the dependancy on the window os. I think they should take a direct role in bring dot net the mac and linux. If Sun did one thing right, it was to port...
383
11792
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they...
60
7866
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type? ----------------------------------------------------------------------- It is not possible with client-side JavaScript. Some browsers accept the Content-Disposition header, but this must be...
6
2115
by: dunleav1 | last post by:
I have a db2 9 FP3a installation with one instance and one database installed. I have 4G of physical RAM and I have enabled the /3G switch in boot.ini. I am using STTM. If I run db2mtrk the database never consumes more than 1.2G - why? Here's the db2mtrk output: Tracking Memory on: 2007/11/19 at 15:13:43
1
1736
by: radhikabista | last post by:
hey friends , i m not being able to save the updates in datagrid view when i press buttonsave_ gridview i have a class customer with two methods one to get the dataset and other to update database: i dont know what is the problem with my code. i always get UPDATE syntax run time error, as i press button_save_grod view : please help me. my...
0
2075
by: Brian | last post by:
Hello, I'm having a little trouble with the Windows Update Agent API (WUApiLib). I've got code working that pulls back a list of updates from Microsoft, but they're specific to the system I'm running the code on. I'm trying to figure out how to get the data for another system. For example, I'd like to run the application on a Vista...
20
1895
by: Joel Teichroeb | last post by:
In trunk of the svn there is a folder called PCbuild. Now lets say that I am running linux on my Personal Computer and want to build python. I go into the PCbuild directory, but wait. This is for windows not for any personal computer. Calling Windows PC seems to be something that Apple did so they would not have to directly mention Windows....
0
6101
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too). Much of the contents of this article are tested on Windows XP professional SP2 by the author. Some instances of this article may be altogether...
0
7276
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7581
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7548
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4773
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3267
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1624
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.