自定义操作,卸载将删除添加的注册表项 [英] Custom action, uninstallation removes added registry key

查看:136
本文介绍了自定义操作,卸载将删除添加的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我制作了一个小程序,可以在用户运行键中创建注册表项(基本上在启动时启动该程序),我的问题是有人知道如何删除该项吗?

我知道所有其他用户注册表配置单元都没有在任何时间加载,并且会感觉到在卸载时运行的自定义操作dll会进行迭代通过文档和设置"文件夹一次加载一个配置单元,并删除注册表项.有没有人看过说明专业人士如何处理此问题的教程或博客?

任何帮助将不胜感激,谢谢,

Hobb

Hi,

I've made a small program that creates a registry item in the users run key (basically starts the program on bootup), my question is does anybody know how to remove the item from all the users of the computer when the program is uninstalled?.

I know that all the other users registry hives aren't loaded at anyone time and feel a custom action dll that runs on uninstall that iterates through the 'documents and settings' folder loading the hives one at a time and removes the registry key. Has anybody seen a tutorial or blog explaining how the professionals deal with this issue?

Any help would be much appreciated thanks,

Hobb

推荐答案

您可以实现部署设置时想要使用的功能:
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


这篇关于自定义操作,卸载将删除添加的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆