Export (0) Print
Expand All

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)

'Declaration
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()
   MyBase.New()
   AddHandler BeforeUninstall, AddressOf BeforeUninstallEventHandler
End Sub 'New 

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

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
Show:
© 2015 Microsoft