We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Registry - unable to preserve value on uninstall

On the registry page, we need to keep some registry key & value on uninstall, i.e. do not remove the key & values. I was able to achieve this by selecting "Preserving Key Content" in Operations tab from the Properties dialog of the key. Using the default condition - value of 1 seems to do it. However, this does not work for keys created right under "HKEY_CLASSES_ROOT". For example:

myKey is created as follows:
HKEY_CLASSES_ROOT\MyKey\
and myKey has myValue with myData.

"Preserving Key Content" was selected for myKey. But when I uninstall, myKey remains but myValue is removed.
If myKey has a subkey, the settings outlined above work for the subkey, i.e. the sub-values stay on uninstall. Not sure if this is a bug or there's something that I missed?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Registry - unable to preserve value on uninstall

Hello Jon,
we need to keep some registry key & value on uninstall, i.e. do not remove the key & values.
In order to achieve that, you can go in the Organization page and select the Permanent attribute from the component properties of the related registry.

You can also take a look on our How do I prevent a file or registry entry from being uninstalled or repaired? article which may be useful to you.

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”