Installer::Rollback Method
When overridden in a derived class, restores the pre-installation state of the computer.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
Parameters
- savedState
- Type: System.Collections::IDictionary
An IDictionary that contains the pre-installation state of the computer.
| Exception | Condition |
|---|---|
| ArgumentException | The savedState parameter is nullptr. -or- The saved-state IDictionary might have been corrupted. |
| InstallException | An exception occurred during the Rollback phase of the installation. This exception is ignored and the rollback continues. However, the computer might not be fully reverted to its initial state after the rollback completes. |
When you override the Rollback method in a derived class, be sure to call the base class's Rollback method first in your derived method. A rollback operation restores the computer to the state it was in before the installations occurred. The Rollback method is called if the Install method of this instance of Installer, or any installer in the installer collection, fail to run correctly. Any exceptions generated by calling the Rollback methods of the installers in the installer collection are ignored and the rollback of the other installers continues.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.