简体   繁体   中英

Have Visual Studio Setup Project retain registry key on uninstall?

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

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.

2) To not remove the key on uninstall, ensure DeleteAtUninstall is False.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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