How do I create an installation that automatically peforms a self-repair using Wise Installation System 9?
|Article:HOWTO5881|||||Created: 2005-10-12|||||Updated: 2006-11-22|||||Article URL http://www.symantec.com/docs/HOWTO5881|
How do I create an installation that automatically performs a self-repair using Wise Installation System 9?
One benefit of Windows Installer technology is the ability of an installation to self-repair. Self-repair enables your application to initiate repair of itself upon shortcut launch if vital files or registry entries are corrupt or missing. This capability was previously unavailable in Wise script-based products. With the advent of Wise Installation System 9 Professional Edition, you can now take advantage of self-healing technology without migrating to Windows Installer based products. This article explains how self-repair works and the process for configuring a self-repairing installation.
The new self-repair functionality lets you define files and registry entries that are crucial to the application. When the application is launched from its shortcut, self-repair functionality identifies missing or corrupt files or registry entries and prompts the end user to begin the application repair process. This repair process enables the installation to heal itself instead of leaving the end user or developer with a broken application. Moreover, it eliminates the need to uninstall then reinstall the application. For end users and developers, this saves time and frustration. An additional benefit is that it is a simple process to create a self-repairing installation.
The process for configuring a self-repair installation is as follows:
- Determine the files and registry entries that are crucial to your application. To expedite self-repair, it is recommended that only an application's most important registry entries and files be checked for self-repair. The more items that require checking, the more time it will take to launch the application.
- Flag files and registry entries for self-repair in the appropriate dialog boxes:
- Files: Open the Install File Settings dialog box by double-clicking the file on the Files page in Installation Expert or by double-clicking the Install File(s) action for that file in Script Editor. To mark the file for self-repair, mark the Repair application if this file is missing check box, then click OK.
- Registry Entries: Open the Registry Key Settings dialog box by double-clicking the registry key on the Registry Page in the Installation Expert or by double-clicking the Edit Registry action in the Script Editor. To mark the registry key for self-repair, mark the Repair application if this registry value is missing check box, then click OK.
- Create a shortcut that launches your application: The files and registry entries you defined and flagged for self-repair will trigger self-repair only if they are missing or corrupted and if your application is launched using its shortcut. To create a shortcut in Installation Expert, use the Shortcuts page. To create a shortcut in Script Editor, use the Create Shortcut script action. In both instances, the Shortcut Details dialog box appears. In this dialog box, mark the Check self-repair items when this shortcut is opened check box, then click OK.
Article URL http://www.symantec.com/docs/HOWTO5881