2

I have encountered an issue when using Windows Update Agent (WUA) API.

Whenever I try to uninstall an update using IUpdateInstaller.IsForced := True; IUpdateInstaller.BeginUninstall(... i'm getting WU_E_UNINSTALL_NOT_ALLOWED (The update could not be uninstalled because the request did not originate from a WSUS server). Does it mean that I can't use WUA API to uninstall updates? In that case, why are BeginUninstall/Uninstall methods there?

2
  • It seems you have two different questions here. You should ask two separate questions as such. SO is a one-question-one-accepted-answer site. Aug 13, 2016 at 21:21
  • OK, I edited the post, leaving the more important question.
    – forsajt
    Aug 13, 2016 at 22:08

1 Answer 1

1

According to Hey, Scripting Guy! How Can I Remove a Microsoft Update? (and also here) the WUA API can only be used to uninstall updates that were installed by a WSUS server.

You might be able to use DISM instead, e.g., see here and here. (Note that Windows updates are refered to as "packages" in DISM terminology.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.