This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- Using Update Service from .Net
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 13, 2004
01:14 PM
Using Update Service from .Net
Hi,
I've started writing some code to evaluate Update Service.
The interop looks ok, the code compiles, but for some reason it doesn't return any of the updates available where the update manager from the control panel (on Win XP) shows some available.
Here is my code (code is a GUID structure containing the product code)
DWUpdateServiceLib.Agent agent = new AgentClass();
string codeStr = code.ToString("B").ToUpper();
if(agent.IsConnected())
{
Updates updates = agent.EnumUpdates(codeStr);
int count = updates.Count;
foreach(Update u in updates)
{
if (u.Type == updateType)
{
messageList.Add(u);
}
}
}
When I run this code, updates.Count returns 0 where I was expecting 1.
Any idea why?
Thanks,
/Tony.
I've started writing some code to evaluate Update Service.
The interop looks ok, the code compiles, but for some reason it doesn't return any of the updates available where the update manager from the control panel (on Win XP) shows some available.
Here is my code (code is a GUID structure containing the product code)
DWUpdateServiceLib.Agent agent = new AgentClass();
string codeStr = code.ToString("B").ToUpper();
if(agent.IsConnected())
{
Updates updates = agent.EnumUpdates(codeStr);
int count = updates.Count;
foreach(Update u in updates)
{
if (u.Type == updateType)
{
messageList.Add(u);
}
}
}
When I run this code, updates.Count returns 0 where I was expecting 1.
Any idea why?
Thanks,
/Tony.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 15, 2004
05:31 PM
Hi,
me again.
I made a wrong diagnostic of my problem.
The .Net interop works fine.
The problem is with the Update Service Test Utility. I used it to set the machine to receive both active and test updates. The problem is that this works at the user level, ie: only my user account on the computer can see test updates.
How can I set the same behavior at the system level? (ie: I want to use the Update Service from a Web interface that is running with the SYSTEM account for which I cannot run the test utility program).:confused:
Thanks,
/Tony.
me again.
I made a wrong diagnostic of my problem.
The .Net interop works fine.
The problem is with the Update Service Test Utility. I used it to set the machine to receive both active and test updates. The problem is that this works at the user level, ie: only my user account on the computer can see test updates.
How can I set the same behavior at the system level? (ie: I want to use the Update Service from a Web interface that is running with the SYSTEM account for which I cannot run the test utility program).:confused:
Thanks,
/Tony.