How do I get a Visual Studio Setup Project to:
- create a registry key only if it doesn’t exist
- not remove the key on uninstall
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right-click on the Registry key in the setup project and select Properties.
1) To only create the registry key if it doesn’t exist, ensure
AlwaysCreateis False.2) To not remove the key on uninstall, ensure
DeleteAtUninstallis False.