File Association Self Repair

Article:HOWTO1050  |  Created: 2005-08-30  |  Updated: 2007-07-27  |  Article URL http://www.symantec.com/docs/HOWTO1050
Article Type
How To



Question

How can I turn off self-repair for file associations?

Answer

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):

  1. Complete the original vendor installation on a test computer to assist in obtaining the necessary registry keys for the steps below.
  2. On the File Associations page of Installation Expert, double-click the first file association listed.
  3. On the Extension Details tab, note the values of the Extension and ProgID fields.
  4. If there are any entries on the Command Verbs tab, double-click each entry and note the value of the Verb field.
  5. Note any entries listed on the MIME Types tab.
  6. 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.
  7. 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.
  8. On the test computer, look directly under HKEY_CLASSES_ROOT for the ProgID noted in step 3 above.
  9. 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.
  10. 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.
  11. On the test computer, look under HKEY_CLASSES_ROOT\MIME\Database\Content Type for the MIME Types noted in step 4 above.
  12. Manually create the key and all subkeys on the Registry page in Installation Expert for each MIME Type.
  13. 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.



Legacy ID



1236


Article URL http://www.symantec.com/docs/HOWTO1050


Terms of use for this information are found in Legal Notices