Unistall C#Windows应用程序+删除注册表值 [英] unistall c# windows application+remove registry value

查看:121
本文介绍了Unistall C#Windows应用程序+删除注册表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在用C#执行Windows应用程序.第一次运行时,它将设置一个注册表值.

Hi,
I am doing a windows application in C#. When it runs first time it will set a registry value. How can I remove this registry value when unistalling my application.

推荐答案

我想,如果您右键单击安装项目,则单击View->.注册表,您可以将注册表项添加到列表中.
该键具有属性(右键单击->属性)AlwaysCreate和DeleteAtUninstall,它们应在注册表表中执行所需的操作.不要在键上添加值,将AlwaysCreate设置为false,将DeleteAtUninstall设置为true.
可以吗?
I guess, if you right click on your install project, View -> Registry, you can add a registry key to the list.
The key has properties (right click -> Properties) AlwaysCreate, and DeleteAtUninstall, which should perform what you need in Registry table. Don''t add a value to the key, set AlwaysCreate to false, and DeleteAtUninstall to true.
Will this do?


这篇关于Unistall C#Windows应用程序+删除注册表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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