Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Committed Event

Installer.Committed Event

Occurs after all the installers in the Installers property have committed their installations.

[Visual Basic]
Public Event Committed As InstallEventHandler
public event InstallEventHandler Committed;
public: __event InstallEventHandler* Committed;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type InstallEventArgs containing data related to this event. The following InstallEventArgs property provides information specific to this event.

Property Description
SavedState Gets an IDictionary that represents the current state of the installation.


[Visual Basic, C#, C++] The following example demonstrates the Committed event. It is raised by the OnCommitted method.

[Visual Basic] 
Public Sub New()
   ' Attach the 'Committed' event.
   AddHandler Me.Committed, AddressOf MyInstaller_Committed
End Sub 'New

' Event handler for 'Committed' event.
Private Sub MyInstaller_Committed(ByVal sender As Object, ByVal e As InstallEventArgs)
   Console.WriteLine("Committed Event occured.")
End Sub 'MyInstaller_Committed

public MyInstallerClass() :base()
   // Attach the 'Committed' event.
   this.Committed += new InstallEventHandler(MyInstaller_Committed);

// Event handler for 'Committed' event.
private void MyInstaller_Committed(object sender, InstallEventArgs e)
   Console.WriteLine("Committed Event occured.");

    MyInstallerClass() {
        // Attach the 'Committed' event.
        this->Committed += new InstallEventHandler(this, &MyInstallerClass::MyInstaller_Committed);

    // Event handler for 'Committed' event.
    void MyInstaller_Committed(Object* sender, InstallEventArgs* e) {
        Console::WriteLine(S"Committed Event occured.");

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Installer Class | Installer Members | System.Configuration.Install Namespace | Committing | OnCommitted | OnCommitting

© 2015 Microsoft