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 );
Exception Type | Condition |
---|---|
ArgumentException | The saved state IDictionary is in an inconsistent state. |
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.
Installer Class | Installer Members | System.Configuration.Install Namespace | Install | Commit | Rollback | InstallerCollection | Installers