Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Installer::AfterUninstall Event

 

Occurs after all the installers in the Installers property perform their uninstallation operations.

Namespace:   System.Configuration.Install
Assembly:  System.Configuration.Install (in System.Configuration.Install.dll)

public:
event InstallEventHandler^ AfterUninstall {
	void add(InstallEventHandler^ value);
	void remove(InstallEventHandler^ value);
}

The following example demonstrates the AfterUninstall event. It is raised by the OnAfterUninstall method.

   // MyInstaller is derived from the class 'Installer'.
private:
   MyInstaller()
   {
      AfterUninstall += gcnew InstallEventHandler( this, &MyInstaller::AfterUninstallEventHandler );
   }

   void AfterUninstallEventHandler( Object^ sender, InstallEventArgs^ e )
   {
      // Add steps to perform any actions before the Uninstall process.
      Console::WriteLine( "Code for AfterUninstallEventHandler" );
   }

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft