Commit Method

Microsoft Deployment Tools

Deployment Tools Foundation Commit Method
Ends the install transaction and commits all changes to the system belonging to the transaction.
Declaration Syntax
C# Visual Basic Visual C++
public void Commit()
Public Sub Commit
public:
void Commit()
Remarks

Runs any Commit Custom Actions and commits to the system any changes to Win32 or common language runtime assemblies. Deletes the rollback script, and after using this option, the transaction's changes can no longer be undone with a Rollback Installation.

This method can only be called by the current owner of the transaction.

Win32 MSI API: MsiEndTransaction

Exceptions
Exception Condition
InstallerException The transaction could not be committed.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)