Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Installer.BeforeInstall Event

Occurs before the Install method of each installer in the installer collection has run.

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

'Declaration
Public Event BeforeInstall As InstallEventHandler

The following example demonstrates the BeforeInstall event. It is raised by the OnBeforeInstall method.

' MyInstaller is derived from the class 'Installer'. 
Sub New()
   MyBase.New()
   AddHandler BeforeInstall, AddressOf BeforeInstallEventHandler
End Sub 'New 

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

.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