且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义操作,卸载将删除添加的注册表项

更新时间:2022-12-11 14:37:07

您可以实现部署设置时想要使用的功能:
You can achieve what you want using when deploying your setup:
  1. 通过自定义操作:您可以包含一个控制台应用程序(您将添加到程序目录中),该控制台应用程序创建以在执行卸载时删除此注册表项.
  2. 首先,将可执行的Console App添加到程序文件中.
  3. 选择"自定义操作编辑器"
  4. 然后右键单击卸载操作,然后选择添加
  5. 然后选择控制台应用程序,它要做的就是删除密钥.
  1. Via Custom Actions : As you can include a console application (that you will add to your program directory) that you create to remove this registry key when you perform Uninstall.
  2. First of all, add your Console App Executable to your program files.
  3. Select "Custom Action Editor "
  4. then right click on Uninstall Action and select add,
  5. then select your console application that all it does is to remove your key.


希望对您有帮助


Hope it helps