jonnyCoder
Posts: 5
Joined: Wed Sep 07, 2005 1:50 pm

Uninstall removes added registry key/values

I have a setup an install that successfully adds a registry key and a set of values under HKEY_LOCAL_MACHINE\Software\[New Key].

Under properties for the new key I have checked the "Create (if absent) at install" and unchecked "Delete (if present) at uninstall" yet during uninstallation this key and contained values are getting removed.

Is there something else I need to do to make these values persistant?
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

There are two possibilities to avoid the deletion of your registry value at uninstall.

1. You can make the component that contains that registry value permanent. This means that it will not be deleted when the package is uninstalled.

To do that go to the "Organization" page. Select the component that contains that registry value(it has the same name as the value). Select the "Permanent" check box from the "Component Properties" pane.

2. You can use a custom action with a Script. If you want I will give you an example of such a script.


All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”