System recovery on unsuccessful installation
The Microsoft Software Installer (MSI) provides the ability to return a system to the fully working condition after an unsuccessful installation. MSI does this by maintaining an undo operation for every standard action that it performs during an install, upgrade, or uninstall. This operation includes restoration of deleted or overwritten files, registry keys, and other resources. Windows temporarily saves all files that it deletes or overwrites during an installation or removal, so that they can be restored if necessary, which is a type of rollback. After a successful installation, Windows deletes all the temporary backup files.
In addition to the rollback of MSI Standard Actions, the library also has the ability to undo commands that are listed in the INI file for each application if a rollback occurs. All files that are modified by the installation actions are restored to their original state if rollback occurs.
When the MSI engine is going through the installation sequence, it ignores all actions that are scheduled as rollback actions. If a Custom Action, MSI Standard Action, or an installation action is unsuccessful, then a rollback starts.
You cannot roll back an installation once it is completed; transacted installation is only intended as a safety net that protects the system during an installation session. If you want to remove an installed application, you should uninstall that application.
NOTE: Driver installation and removal are not executed as part of the installation transaction and therefore cannot be rolled back if a fatal error occurs during execution.
|
NOTE: Installations, uninstallations, and upgrades that you cancel during installer cleanup, or after the installation transaction is completed, are not rolled back.
|