The information in this article applies to:
SUMMARYThe SMS Installer contains the ability to update an existing application installation, such as Modify the installation (make INI and registry changes) and to install updated executables and data files. With this ability comes the facility to backup the changes made during an update to an existing installation. The SMS Installer can provide the framework to automatically backup replaced files, registry and INI file changes during an installation. It is then possible at a later point to roll back the installation to the previously installed state. MORE INFORMATION
To enable rollback support, the SMS Installer must have the following options enabled:
Support for Multiple Builds and Incremental Rollback:If the installed package is updated more than once with rollback support enabled, the install.log is appended with the set of changes by each installation. When files are replaced by updated versions, the copy to be replaced is moved to the BACKUP directory. If the file has been updated in a previous installation, a file with that name will already exist in the BACKUP directory, and the file being moved is automatically given the extension 001. As more updates occur, replaced files are moved to the BACKUP directory and the extension incremented (file.001, file.002, etc.).It is therefore possible to roll back an installation to the previous build and then to a build prior to that, if it exists. If a rollback is performed on an installation that contains no backups, the rollback is treated as a deinstallation (the application is removed). If the SMS Installer package is executed with the /S (Silent) command line option, then custom dialogs are not displayed. The default contents of the BACKUP variable (%MAINDIR%\BACKUP) are used as the backup path for rollback support. Original files that are about to be replaced are copied to the backup directory automatically. Performing a rollback:If rollback support is available when the user selects to uninstall an application (either via Control Panel,Add/Remove Programs or through Uninstal.exe/Uninst32.exe), the SMS Installer uninstall program will ask the user if the installation should be rolled back. Upon selecting Yes (perform a rollback), information about files, registry, and INI file changes will be obtained from the install.log and a rollback performed (files from the backup directory will be copied back to their original location to replace the prior versions).Performing rollbacks automatically:The uninstall programs Uninstal.exe/Uninst32.exe support a number of command line parameters that affect their functionality. When an uninstall is performed without any command line parameters, multiple dialogs can be presented to the user depending upon the installation type performed initially. The first dialog produced is the Uninstall Method preferred by the user.This can be Automatic or Custom:
/A Perform and automatic uninstall /S Perform a silent uninstall /R Perform a rollback e.g. UNINSTAL.EXE /S /A /R x:\path\install.log The path to the install.log is optional. This does not need to be supplied if the install.log is in the same directory as the uninstal.exe program. The above command line performs a silent, automatic rollback of the installation. Additional query words: prodsms installer rollback
Keywords : kbRegistry kbSMS200 |
Last Reviewed: March 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |