IUpdateInstaller::BeginUninstall method (wuapi.h)
Starts an asynchronous uninstallation of the updates.
HRESULT BeginUninstall( IUnknown *onProgressChanged, IUnknown *onCompleted, VARIANT state, IInstallationJob **retval );
An IInstallationProgressChangedCallback interface that is called periodically for uninstallation progress changes before before the uninstallation is complete.
An IInstallationCompletedCallback interface that is called when an installation operation is complete.
An IInstallationJob interface that contains the properties and methods that are available to an asynchronous uninstall operation that was initiated.
This method returns the following HRESULT values and other COM or Windows
||The asynchronous removal of an update started successfully.|
||Do not call this method when the installer is installing or removing an update.|
||Windows Update Agent (WUA) does not have updates in the collection.|
If you call this method from a scripting language, set the onProgressChanged parameter to the identifier of an Automation object with a dispatch identifier (DSIPID) of zero (0) that implements the callback routine. Do the same thing for the onCompleted parameter.
When you use any asynchronous WUA API in your app, you might need to implement a time-out mechanism. For more info about how to perform asynchronous WUA operations, see Guidelines for Asynchronous WUA Operations.
|Minimum supported client||Windows XP, Windows 2000 Professional with SP3 [desktop apps only]|
|Minimum supported server||Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]|