NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Installer.Uninstall

Removes an installation.

[Visual Basic]
Overridable Public Sub Uninstall( _
   ByVal savedState As IDictionary _
)
[C#]
public virtual void Uninstall(
   IDictionary savedState
);
[C++]
public: virtual void Uninstall(
   IDictionary* savedState
);
[JScript]
public function Uninstall(
   savedState : IDictionary
);

Parameters

savedState
A IDictionary representing the state saved when the installation was done, or a null reference (in Visual Basic Nothing) if the file containing the saved state was deleted after the installation was completed.

Exceptions

Exception Type Condition
ArgumentException The saved state IDictionary is in an inconsistent state.

Remarks

Call this method to remove a previously completed installation. Uninstalls are not done in a transaction. If the Uninstall method fails for one of the installers in the installer collection, the Uninstall method will still be called on the other installers in the collection. A failed uninstall procedure will not be rolled back.

Note   Although the Install and Commit methods that were called to do this installation saved the state of the installation, the file containing the savedState IDictionary may have been deleted some time after the installation was completed. Uninstall should be able to handle the case of a a null reference (Nothing) saved state parameter.

Notes to Inheritors: If you override the Uninstall method in a derived class, be sure to call the base class's Uninstall method.

See Also

Installer Class | Installer Members | System.Configuration.Install Namespace | Install | Commit | Rollback | InstallerCollection | Installers