PDA

View Full Version : Removing custom added reg entries



Steve S
01-11-2005, 11:06 AM
Hi,

I have a custom action script that adds a few registry entries which won't get removed via my uninstall.

Is there anyway of adding these to the MSI database so they get uninstalled with the rest of my package?

Cheers
Steve

TsungH
01-11-2005, 11:57 AM
At uninstallation, Windows Installer does not automatically remove registry entries created by a custom action. Custom action will be needed to remove those registry entries at uninstallation. Alternatively, RemoveRegistry table can be used.

Steve S
01-11-2005, 12:06 PM
So if I add entries to the RemoveRegistry table they will be removed on the uninstall only?

Thanks mate
Steve

TsungH
01-11-2005, 12:13 PM
My bad, it does not. RemoveRegistry table (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/removeregistry_table.asp) is used to delete a registry entry when the associated component is installed.