Committing Event
Collapse the table of content
Expand the table of content

Installer.Committing Event

Occurs before the installers in the Installers property committ their installations.

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

[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 Committing event. It is raised by the OnCommitting method.

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

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

public MyInstallerClass() :base()
   // Attach the 'Committing' event.
   this.Committing += new InstallEventHandler(MyInstaller_Committing);
// Event handler for 'Committing' event.
private void MyInstaller_Committing(object sender, InstallEventArgs e)
   Console.WriteLine("Committing Event occured.");

   MyInstallerClass() : Installer() {
      // Attach the 'Committing' event.
      this->Committing += new InstallEventHandler(this, &MyInstallerClass::MyInstaller_Committing);
   // Event handler for 'Committing' event.
   void MyInstaller_Committing(Object* /*sender*/, InstallEventArgs* /*e*/) {
      Console::WriteLine(S"Committing 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 | Committed | OnCommitted | OnCommitting

© 2016 Microsoft