How can I turn off self-repair for file associations?
To prevent Windows Installer from self-repairing file associations, no data should exist in the MIME or Verb tables.
To populate the registry with information about file associations for the application (including Command Verbs and File MIME Types):
- Complete the original vendor installation on a test computer to assist in obtaining the necessary registry keys for the steps below.
- On the File Associations page of Installation Expert, double-click the first file association listed.
- On the Extension Details tab, note the values of the Extension and ProgID fields.
- If there are any entries on the Command Verbs tab, double-click each entry and note the value of the Verb field.
- Note any entries listed on the MIME Types tab.
- On the test computer, open the Windows registry using regedit or another tool and look directly under HKEY_CLASSES_ROOT for the file association noted in step 2 above.
- Manually create the entire key and all subkeys on the Registry Page of Installation Expert. If no Command Verbs or MIME Types exist for this file association, proceed to step 13 below. If only MIME Types exist, proceed to step 11 below.
- On the test computer, look directly under HKEY_CLASSES_ROOT for the ProgID noted in step 3 above.
- Delete the REG_MULTI_SZ registry value named "command" from HKEY_CLASSES_ROOT\<ProgID>\shell\<Verb>\command for each verb noted in step 4 above (for example, open, edit, or find). The command value contains advertising information and initiates self-repair. Do not delete the (Default) string value.
- Manually create the key and all remaining subkeys (that is, those not referenced in step 9 above) on the Registry Page of Installation Expert. If no MIME Types exist, proceed to step 13 below.
- On the test computer, look under HKEY_CLASSES_ROOT\MIME\Database\Content Type for the MIME Types noted in step 4 above.
- Manually create the key and all subkeys on the Registry page in Installation Expert for each MIME Type.
- Repeat steps 2–12 for each of the file associations listed on the File Associations page of Installation Expert.
After completing the steps above, remove all file association information from the File Associations page of Installation Expert. This enables file associations to function as expected while preventing self-repair for these entry points.
Imported Document Id