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

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

// MyInstaller is derived from the class 'Installer'.
MyInstaller() : base()
{
   AfterUninstall += new InstallEventHandler(AfterUninstallEventHandler);
}
private void AfterUninstallEventHandler(object sender, InstallEventArgs e)
{
   // Add steps to perform any actions before the Uninstall process.
   Console.WriteLine("Code for AfterUninstallEventHandler"); 
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft