Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Update Services > Windows Update uninstall problem

Reply
Thread Tools Display Modes

Windows Update uninstall problem

 
 
katanel
Guest
Posts: n/a

 
      02-05-2010
I tried to uninstall an update using a C++ application I made. I use the
Windows Update Agent API to create an IUpdateSession then an
IUpdateInstaller; I
set the update collection for the installer and then use the
IUpdateInstaller->Uninstall method but I get the 0x80240028 error message. I
understand that this means an uninstall can be started only by WSUS but is
there any way I to send a command to the WSUS to uninstall the update or to
"associate" my application with the WSUS server?
I noticed that the IUpdateSession interface has an ClientApplicationID
property that should be set; does anybody know what is it used for? I didn't
set it because I'm not sure what value should it have.
May this be the problem?
Thank you!
 
Reply With Quote
 
 
 
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      02-07-2010
"katanel" <> wrote in message
news:B2D4786B-01AD-49F2-AC81-...
>I tried to uninstall an update using a C++ application I made. I use the
> Windows Update Agent API to create an IUpdateSession then an
> IUpdateInstaller; I
> set the update collection for the installer and then use the
> IUpdateInstaller->Uninstall method but I get the 0x80240028 error message.
> I
> understand that this means an uninstall can be started only by WSUS but is
> there any way I to send a command to the WSUS to uninstall the update or
> to
> "associate" my application with the WSUS server?
> I noticed that the IUpdateSession interface has an ClientApplicationID
> property that should be set; does anybody know what is it used for? I
> didn't
> set it because I'm not sure what value should it have.


What update are you trying to uninstall?


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2010)

My Blog: http://onsitechsolutions.spaces.live.com
Microsoft WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
katanel
Guest
Posts: n/a

 
      02-08-2010


"Lawrence Garvin [MVP]" wrote:

> "katanel" <> wrote in message
> news:B2D4786B-01AD-49F2-AC81-...
> >I tried to uninstall an update using a C++ application I made. I use the
> > Windows Update Agent API to create an IUpdateSession then an
> > IUpdateInstaller; I
> > set the update collection for the installer and then use the
> > IUpdateInstaller->Uninstall method but I get the 0x80240028 error message.
> > I
> > understand that this means an uninstall can be started only by WSUS but is
> > there any way I to send a command to the WSUS to uninstall the update or
> > to
> > "associate" my application with the WSUS server?
> > I noticed that the IUpdateSession interface has an ClientApplicationID
> > property that should be set; does anybody know what is it used for? I
> > didn't
> > set it because I'm not sure what value should it have.

>
> What update are you trying to uninstall?
>
>
> --
> Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
> Principal/CTO, Onsite Technology Solutions, Houston, Texas
> Microsoft MVP - Software Distribution (2005-2010)
>
> My Blog: http://onsitechsolutions.spaces.live.com
> Microsoft WSUS Website: http://www.microsoft.com/wsus
> My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin
>


I tried to uninstall a couple of updates but none worked. I also verified
the IsUninstallable property and it was true for each one. Can you help me?
Thank you!
 
Reply With Quote
 
katanel
Guest
Posts: n/a

 
      02-08-2010
"katanel" wrote:

>
>
> "Lawrence Garvin [MVP]" wrote:
>
> > "katanel" <> wrote in message
> > news:B2D4786B-01AD-49F2-AC81-...
> > >I tried to uninstall an update using a C++ application I made. I use the
> > > Windows Update Agent API to create an IUpdateSession then an
> > > IUpdateInstaller; I
> > > set the update collection for the installer and then use the
> > > IUpdateInstaller->Uninstall method but I get the 0x80240028 error message.
> > > I
> > > understand that this means an uninstall can be started only by WSUS but is
> > > there any way I to send a command to the WSUS to uninstall the update or
> > > to
> > > "associate" my application with the WSUS server?
> > > I noticed that the IUpdateSession interface has an ClientApplicationID
> > > property that should be set; does anybody know what is it used for? I
> > > didn't
> > > set it because I'm not sure what value should it have.

> >
> > What update are you trying to uninstall?
> >
> >
> > --
> > Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
> > Principal/CTO, Onsite Technology Solutions, Houston, Texas
> > Microsoft MVP - Software Distribution (2005-2010)
> >
> > My Blog: http://onsitechsolutions.spaces.live.com
> > Microsoft WSUS Website: http://www.microsoft.com/wsus
> > My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin
> >

>
> I tried to uninstall a couple of updates but none worked. I also verified
> the IsUninstallable property and it was true for each one. Can you help me?
> Thank you!



Is WUA API working only if WSUS Server or WSUS Client is installed? I don't
need my application to uninstall updates remotely in an network, so I didn't
install any WSUS. The only service I found in the service list is Windows
Update so I don't understand why it "wants" my update uninstall to be
initiated by a WSUS server.
 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      02-08-2010
"katanel" <> wrote in message
news:BAFA1FFE-964A-4A62-B312-...


>> > What update are you trying to uninstall?


>> I tried to uninstall a couple of updates but none worked. I also verified
>> the IsUninstallable property and it was true for each one. Can you help
>> me?


Yes, but pick *one* update and identify it by name. We'll work from there.

> Is WUA API working only if WSUS Server or WSUS Client is installed?


No. The WUAgent API is available on any machine. The Windows Update Agent is
a core component of all Windows operating systems, and has been for about
six years now.

> The only service I found in the service list is Windows
> Update so I don't understand why it "wants" my update uninstall to be
> initiated by a WSUS server.


Nothing is initiated by the WSUS server, but the WUAgent needs to be able to
communicate with a device that has the correct approvals issued for the
update(s) you're trying to trigger an uninstallation for. Updates are not
"Approved for Removal" at WU/MU (this is a WSUS-only feature), and the
update must be "Approved for Removal" at the WSUS Server. Furthermore, only
MSI/MSP-based packages can be "Approved for Removal" because the Package
Installer does not support removal by the WUAgent.

So, if there's no WSUS server in the environment, the WUAgent won't be able
to identify an existing approval that authorizes removal of an update.






--
Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2010)

My Blog: http://onsitechsolutions.spaces.live.com
Microsoft WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
katanel
Guest
Posts: n/a

 
      02-09-2010


"Lawrence Garvin [MVP]" wrote:

> "katanel" <> wrote in message
> news:BAFA1FFE-964A-4A62-B312-...
>
>
> >> > What update are you trying to uninstall?

>
> >> I tried to uninstall a couple of updates but none worked. I also verified
> >> the IsUninstallable property and it was true for each one. Can you help
> >> me?

>
> Yes, but pick *one* update and identify it by name. We'll work from there.
>
> > Is WUA API working only if WSUS Server or WSUS Client is installed?

>
> No. The WUAgent API is available on any machine. The Windows Update Agent is
> a core component of all Windows operating systems, and has been for about
> six years now.
>
> > The only service I found in the service list is Windows
> > Update so I don't understand why it "wants" my update uninstall to be
> > initiated by a WSUS server.

>
> Nothing is initiated by the WSUS server, but the WUAgent needs to be able to
> communicate with a device that has the correct approvals issued for the
> update(s) you're trying to trigger an uninstallation for. Updates are not
> "Approved for Removal" at WU/MU (this is a WSUS-only feature), and the
> update must be "Approved for Removal" at the WSUS Server. Furthermore, only
> MSI/MSP-based packages can be "Approved for Removal" because the Package
> Installer does not support removal by the WUAgent.
>
> So, if there's no WSUS server in the environment, the WUAgent won't be able
> to identify an existing approval that authorizes removal of an update.
>
>
>
>
>
>
> --
> Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
> Principal/CTO, Onsite Technology Solutions, Houston, Texas
> Microsoft MVP - Software Distribution (2005-2010)
>
> My Blog: http://onsitechsolutions.spaces.live.com
> Microsoft WSUS Website: http://www.microsoft.com/wsus
> My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin
>



Thank you very much!
 
Reply With Quote
 
katanel
Guest
Posts: n/a

 
      02-09-2010


"katanel" wrote:

>
>
> "Lawrence Garvin [MVP]" wrote:
>
> > "katanel" <> wrote in message
> > news:BAFA1FFE-964A-4A62-B312-...
> >
> >
> > >> > What update are you trying to uninstall?

> >
> > >> I tried to uninstall a couple of updates but none worked. I also verified
> > >> the IsUninstallable property and it was true for each one. Can you help
> > >> me?

> >
> > Yes, but pick *one* update and identify it by name. We'll work from there.
> >
> > > Is WUA API working only if WSUS Server or WSUS Client is installed?

> >
> > No. The WUAgent API is available on any machine. The Windows Update Agent is
> > a core component of all Windows operating systems, and has been for about
> > six years now.
> >
> > > The only service I found in the service list is Windows
> > > Update so I don't understand why it "wants" my update uninstall to be
> > > initiated by a WSUS server.

> >
> > Nothing is initiated by the WSUS server, but the WUAgent needs to be able to
> > communicate with a device that has the correct approvals issued for the
> > update(s) you're trying to trigger an uninstallation for. Updates are not
> > "Approved for Removal" at WU/MU (this is a WSUS-only feature), and the
> > update must be "Approved for Removal" at the WSUS Server. Furthermore, only
> > MSI/MSP-based packages can be "Approved for Removal" because the Package
> > Installer does not support removal by the WUAgent.
> >
> > So, if there's no WSUS server in the environment, the WUAgent won't be able
> > to identify an existing approval that authorizes removal of an update.


> Thank you very much!


WSUS Server can only be installed on Windows Server OS. I need my
application to work in a home computer not in a local network, so I have no
access to a local server with WSUS installed.
But if a home computer has no access to a WSUS server to approve an
uninstall how is it possible to uninstall updates by " Add / Remove Programs
" in Windows? How do that updates get approved?
 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      02-09-2010
"katanel" <> wrote in message
news:7C17935C-522F-473E-9ABE-...

> WSUS Server can only be installed on Windows Server OS. I need my
> application to work in a home computer not in a local network, so I have
> no
> access to a local server with WSUS installed.
> But if a home computer has no access to a WSUS server to approve an
> uninstall how is it possible to uninstall updates by " Add / Remove
> Programs
> " in Windows? How do that updates get approved?


Because Add/Remove Programs uses a *different* methodology for uninstalling
updates, and that's what you should use in a HOME environment.

In the time you and I spent creating these messages you could have already
uninstalled the update a dozen times over.

I'm not quite understanding the interest or concern over reinventing the
wheel for a standalone home computer.



--
Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2010)

My Blog: http://onsitechsolutions.spaces.live.com
Microsoft WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
katanel
Guest
Posts: n/a

 
      02-10-2010

> > WSUS Server can only be installed on Windows Server OS. I need my
> > application to work in a home computer not in a local network, so I have
> > no
> > access to a local server with WSUS installed.
> > But if a home computer has no access to a WSUS server to approve an
> > uninstall how is it possible to uninstall updates by " Add / Remove
> > Programs
> > " in Windows? How do that updates get approved?

>
> Because Add/Remove Programs uses a *different* methodology for uninstalling
> updates, and that's what you should use in a HOME environment.
>
> In the time you and I spent creating these messages you could have already
> uninstalled the update a dozen times over.
>
> I'm not quite understanding the interest or concern over reinventing the
> wheel for a standalone home computer.
>
>



I am trying to develop an application for updates uninstalling on standalone
computers. I looked for solutions on the internet and found information about
WUA API so I tried to use it.
I didn't know it needs WSUS approval to uninstall an update.
Is there any way of using some API to uninstall updates? It's hard to
believe Microsoft offers no support for developers trying to uninstall
Windows updates.
Thank you for your time!
 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      02-10-2010
"katanel" <> wrote in message
news:5AAD4EEB-2396-40AC-9D3E-...

>> I'm not quite understanding the interest or concern over reinventing the
>> wheel for a standalone home computer.


> I am trying to develop an application for updates uninstalling on
> standalone
> computers.


Like I said . . I don't understand the point . . . but Good Luck with your
project.

I don't believe, however, that the WUAgent API is the tool you're looking
for to achieve this objective.

> It's hard to
> believe Microsoft offers no support for developers trying to uninstall
> Windows updates.


The "support" is to call the appropriate uninstall utility found in the
uninstall folder of the %windir%.


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2010)

My Blog: http://onsitechsolutions.spaces.live.com
Microsoft WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WLM Get faultcode: Windows Live Communication Platform has stoped working Masse Borglund Windows Live Messenger 21 03-28-2010 12:41 AM
Updates were unable to be successfully installed wjousts Windows Update 6 01-30-2010 04:01 PM
Security Update KB971486 is trying to install over and over 2harts4ever Windows Update 29 01-24-2010 06:05 PM
Can't Use Microsoft Update JamesJ Windows Update 15 01-07-2010 10:21 PM
Failed to initialize WU client: 0x8007277a Venkata Sadineni Windows Update 4 11-10-2009 06:28 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59