Export (0) Print
Expand All

Installer.AfterInstall Event

Occurs after the Install methods of all the installers in the Installers property have run.

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

public event InstallEventHandler AfterInstall

The following example demonstrates the AfterInstall event. It is raised by the OnAfterInstall method.

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

.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