![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
Rollback Method
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Transaction ► Rollback()()()()
Ends the install transaction and undoes changes to the system belonging to the transaction.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public void Rollback()
Public Sub Rollback
public: void Rollback()
![](collapse_all.gif)
This method can only be called by the current owner of the transaction.
Win32 MSI API: MsiEndTransaction
![](collapse_all.gif)
Exception | Condition |
---|---|
InstallerException | The transaction could not be rolled back. |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)