BeforeUninstall Event
Collapse the table of content
Expand the table of content

Installer.BeforeUninstall Event


Occurs before the installers in the Installers property perform their uninstall operations.

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

Public Event BeforeUninstall As InstallEventHandler

The following example demonstrates the BeforeUninstall event. It is raised by the OnBeforeUninstall method.

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

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

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft