How do I prevent an empty registry key from being automatically deleted? #7538
Unanswered
EasyGoin12000
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Wix v3 to write a value to the Run registry key. During uninstall when my value is removed and leaves the Run key empty, the MSI engine removes the Run key. That may or may not be a big deal, but as a system registry key I would prefer if the Run key was left behind. Microsoft suggests that I create a dummy registry value with a "+" plus in the name field to prevent the key from being removed. Wix prevents this and generates this error - The RegistryValue/@name attribute's value, '+', is incorrect. It should not contain values of '+', '-', or '' when the RegistryValue/@value attribute is empty. Instead, use the proper element and attributes: for Name='+' use RegistryKey/@action='createKey', for Name='-' use RemoveRegistryKey/@action='removeOnUninstall', for Name='' use RegistryKey/@action='createAndRemoveOnUninstall'. Using those suggestions don't solve the problem. Any suggestions would be welcome.
Thanks.
Troy.
Beta Was this translation helpful? Give feedback.
All reactions