473,591 Members | 2,897 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 ClientApplicati onID property of the IUpdateSession
object, but it's always null.

I saw this post [http://groups.google.com/group/
microsoft.publi c.dotnet.genera l/browse_thread/thread/c8e7fc65ca13cdc e/
dd31cc88e254358 9?hl=en&lnk=st& q=WUApiLib
+ClientApplicat ionID#dd31cc88e 2543589] 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:
UpdateSessionCl ass updateSession = new UpdateSessionCl ass();
IUpdateSearcher updateSearcher =
updateSession.C reateUpdateSear cher();
ISearchResult searchResult = updateSearcher. Search(textBox1 .Text);

for (int i = 0; i < searchResult.Up dates.Count; i++)
{
string KBs = string.Empty;
IUpdate update = searchResult.Up dates[i];
UpdateCollectio n coll = update.BundledU pdates;
for (int iu = 0; iu < coll.Count; iu++)
{
IUpdateDownload Content content = coll[iu].DownloadConten ts[0];
foreach (string s in update.KBArticl eIDs)
{
KBs = s + ",";
}

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

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

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

Similar topics

10
2728
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 the java VM to all popular platforms, insuring its wide spread use. Microsoft should do the...
383
12011
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 didn't spend their own money to get companies to
60
7932
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 added by the server. Taking the form:- ` Content-Disposition: attachment; filename=filename.ext `
6
2119
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
1746
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 code goes like this: public class customer { // private static string strConn;
0
2083
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 system and get the updates for a Windows Server 2003 system. I've looked at the ClientApplicationID...
20
1904
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. Could all the places that say PC that are not referring to Personal Computers in general be...
0
6111
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 different/missing on Windows Vista, XP and other Windows NT systems, but I have tried to write a...
0
7934
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7992
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8225
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6639
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2378
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
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1199
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.