How do I prevent self-repair for a particular component?
There might be times when you need to prevent Windows Installer from initiating self-repair of a particular component in your installation. For example, your application might move files to another location as part of its normal operation. If Windows Installer initiates a self-repair of the application, the files no longer exist where the application expects to find them. In this case, turning off self-repair functionality prevents this behavior from occurring.
To turn off self-repair functionality for a component:
1. On the Tables tab in Setup Editor, select the Component table.
2. Select the ComponentID column of the component for which you want to turn off self-repair functionality.
3. Press the F2 key to edit the ComponentID column.
4. Press the Delete key to clear the contents of the Component ID column.
5. Press Enter to make the changes to the component.
6. Save and compile your project.
If you turn off self-repair for a component that has an advertised shortcut, complete the following additional steps:
1. On the Shortcuts page in Installation Expert, select the feature (for example, Complete) containing the component that no longer has self-repair functionality.
2. Click the shortcut associated with the component that no longer has self-repair functionality and click the Delete button.
3. Click Add and create a new shortcut to the file, making sure to clear the Advertised checkbox.
4. Save and compile your project.
Deleting the ComponentID of a component prevents Windows Installer from initiating self-repair of the component.
(NOTE: Deleting the ComponentID of a component also prevents Windows Installer from uninstalling the component, as Windows Installer skips registration of any component with no ComponentID.)
Imported Document Id