How To Remove a Registry Entry Using the Windows Installer

Article translations Article translations
Article ID: 243161 - View products that this article applies to.
This article was previously published under Q243161
Expand all | Collapse all

SUMMARY

The Windows Installer will automatically remove registry entries that are authored into the Registry table when the referenced component is removed, or any registry entry created in the process of registering a COM server using the Class table. However, often times there are registry entries that applications create after the application is installed that must be removed, or registry entries created by a custom action during install. Since these registry key/values are not authored into the Installer .msi package, the Windows Installer cannot automatically remove these entries during maintenance mode or during uninstall. This article describes the best method to have these types of registry entries removed.

MORE INFORMATION

To remove the registry entry, you must add a row as follows in the Registry Table of the MSI package.

Collapse this tableExpand this table
RegistryRootKeyNameValueComponent
MyKey1MyKey-~Notepad

Entering the "-" for the Name field in the earlier entry in the Registry table removes the entire registry key called: MyComputer\HKEY_CLASSES_ROOT\MyKey when the component Notepad is uninstalled. Also note that instead of leaving the Value field empty, you place a "~" in the field to make it NULL.

REFERENCES

Please see the Msi.chm help file available with the Windows Installer SDK or the Platform SDK for more information.

Properties

Article ID: 243161 - Last Review: July 1, 2004 - Revision: 2.1
APPLIES TO
  • Microsoft Windows Installer 1.0
  • Microsoft Windows Installer 1.1
Keywords: 
kbappsetup kbhowto KB243161
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com