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?
FOLLOW US
Get the latest news in Application Packaging