简体   繁体   English

Visual Studio安装项目是否在卸载时保留注册表项?

[英]Have Visual Studio Setup Project retain registry key on uninstall?

How do I get a Visual Studio Setup Project to: 如何获得Visual Studio安装项目:

  • create a registry key only if it doesn't exist 仅在不存在的情况下创建注册表项
  • not remove the key on uninstall 卸载时不要删除密钥

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 AlwaysCreate is False. 1)要仅创建不存在的注册表项,请确保AlwaysCreate为False。

2) To not remove the key on uninstall, ensure DeleteAtUninstall is False. 2)要在卸载时不删除密钥,请确保DeleteAtUninstall为False。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM