Windows Server
(1)
Windows Update
(1)
ClientApplicationID
(1)
Lawrence.Garvin
(1)
IUpdateInstaller
(1)
WUAgent
(1)
IsUninstallable
(1)
Houston
(1)

Windows Update uninstall problem

Asked By katanel
05-Feb-10 09:37 AM
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
I noticed that the IUpdateSession interface has an ClientApplicationID
property that should be set; does anybody know what is it used for? I did not
set it because I am not sure what value should it have.
May this be the problem?
Thank you!

What update are you trying to uninstall?

Lawrence Garvin [MVP] replied to katanel
07-Feb-10 04:00 PM
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/profile/Lawrence.Garvin

"Lawrence Garvin [MVP]" wrote:I tried to uninstall a couple of updates but

katanel replied to Lawrence Garvin [MVP]
08-Feb-10 02:46 AM
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!

"katanel" wrote:Is WUA API working only if WSUS Server or WSUS Client is

katanel replied to katanel
08-Feb-10 08:25 AM
Is WUA API working only if WSUS Server or WSUS Client is installed? I do not
need my application to uninstall updates remotely in an network, so I did not
install any WSUS. The only service I found in the service list is Windows
Update so I do not understand why it "wants" my update uninstall to be
initiated by a WSUS server.
Yes, but pick *one* update and identify it by name. We'll work from there.No.
Lawrence Garvin [MVP] replied to katanel
08-Feb-10 02:02 PM
Yes, but pick *one* update and identify it by name. We'll work from there.


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.


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 are trying to trigger an uninstallation for. Updates are not
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 is no WSUS server in the environment, the WUAgent will not 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/profile/Lawrence.Garvin
"Lawrence Garvin [MVP]" wrote:Thank you very much!
katanel replied to Lawrence Garvin [MVP]
09-Feb-10 01:52 AM
Thank you very much!
"katanel" wrote:WSUS Server can only be installed on Windows Server OS.
katanel replied to katanel
09-Feb-10 03:29 AM
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
Because Add/Remove Programs uses a *different* methodology for
Lawrence Garvin [MVP] replied to katanel
09-Feb-10 12:28 PM
Because Add/Remove Programs uses a *different* methodology for uninstalling
updates, and that is 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 am 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/profile/Lawrence.Garvin
I am trying to develop an application for updates uninstalling on
katanel replied to Lawrence Garvin [MVP]
10-Feb-10 02:51 AM
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 did not know it needs WSUS approval to uninstall an update.
Is there any way of using some API to uninstall updates? it is hard to
believe Microsoft offers no support for developers trying to uninstall
Windows updates.
Thank you for your time!
Like I said . . I do not understand the point . . .
Lawrence Garvin [MVP] replied to katanel
10-Feb-10 11:40 AM
Like I said . . I do not understand the point . . . but Good Luck with your
project.

I do not believe, however, that the WUAgent API is the tool you are looking
for to achieve this objective.


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/profile/Lawrence.Garvin
Post Question To EggHeadCafe