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

编程入门 行业动态 更新时间:2024-10-27 22:19:37
本文介绍了自定义操作,卸载将删除添加的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我制作了一个小程序,可以在用户运行键中创建注册表项(基本上在启动时启动该程序),我的问题是有人知道如何删除该项吗? 我知道所有其他用户注册表配置单元都没有在任何时间加载,并且会感觉到在卸载时运行的自定义操作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:
  • 通过自定义操作:您可以包含一个控制台应用程序(您将添加到程序目录中),该控制台应用程序创建以在执行卸载时删除此注册表项.
  • 首先,将可执行的Console App添加到程序文件中.
  • 选择"自定义操作编辑器"
  • 然后右键单击卸载操作,然后选择添加
  • 然后选择控制台应用程序,它要做的就是删除密钥.
  • 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.
  • First of all, add your Console App Executable to your program files.
  • Select "Custom Action Editor "
  • then right click on Uninstall Action and select add,
  • then select your console application that all it does is to remove your key.
  • 希望对您有帮助

    Hope it helps

    更多推荐

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

    本文发布于:2023-11-03 14:31:56,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1555365.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:自定义   注册表   操作

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!