InstallerAfterInstall Event
 

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

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

public event InstallEventHandler AfterInstall
public:
event InstallEventHandler^ AfterInstall {
	void add(InstallEventHandler^ value);
	void remove(InstallEventHandler^ value);
}
member AfterInstall : IEvent<InstallEventHandler,
    InstallEventArgs>
Public Event AfterInstall As InstallEventHandler

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"); 
}
' MyInstaller is derived from the class 'Installer'.
Sub New()
   MyBase.New()
   AddHandler AfterInstall, AddressOf AfterInstallEventHandler
End Sub 'NewNew

Private Sub AfterInstallEventHandler(ByVal sender As Object, _
                                    ByVal e As InstallEventArgs)
   ' Add steps to perform any actions after the install process.
   Console.WriteLine("Code for AfterInstallEventHandler")
End Sub 'AfterInstallEventHandler
   // MyInstaller is derived from the class 'Installer'.
public:
   MyInstaller()
   {
      AfterInstall += gcnew InstallEventHandler( this, &MyInstaller::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
Available since 1.1
Return to top