Installer.AfterUninstall Event


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 AfterUninstall As InstallEventHandler

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

' MyInstaller is derived from the class 'Installer'.
Sub New()
   AddHandler AfterUninstall, AddressOf AfterUninstallEventHandler
End Sub 'NewNew

Private Sub AfterUninstallEventHandler(sender As Object, e As InstallEventArgs)
   ' Add steps to perform any actions before the Uninstall process.
   Console.WriteLine("Code for AfterUninstallEventHandler")
End Sub 'AfterUninstallEventHandler

.NET Framework
Available since 1.1
Return to top