Deployment Tools Foundation
Commit Method
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Transaction ► Commit()()()()
Ends the install transaction and commits all changes to the system belonging to the transaction.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void Commit()
Public Sub Commit
public: void Commit()
member Commit : unit -> unit
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.dll) Version: 3.0.0.0 (3.11.1.2318)