Installer.AfterInstall Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs after the Install(IDictionary) methods of all the installers in the Installers property have run.
public:
event System::Configuration::Install::InstallEventHandler ^ AfterInstall;
public event System.Configuration.Install.InstallEventHandler AfterInstall;
member this.AfterInstall : System.Configuration.Install.InstallEventHandler
Public Custom Event AfterInstall As InstallEventHandler
Event Type
Examples
The following example demonstrates the AfterInstall event. It is raised by the OnAfterInstall method.
// 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" );
}
// 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
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
Applies to
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.