可以在C#应用程序中创建卸载文件 [英] can create the uninstall file in C# application

查看:58
本文介绍了可以在C#应用程序中创建卸载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在C#应用程序中创建卸载程序包.我希望用户能够通过单击快捷方式来卸载我的应用程序.

问候,
Purnananda Behera.

Hi,

How can I create an uninstall package in a C# application. I would like the users to be able to uninstall my application by clicking a shortcut.

Regards,
Purnananda Behera.

推荐答案

在Visual Studio中创建安装项目,其中将包含卸载功能:

http://msdn.microsoft.com/en-us/library/19x10e5c.aspx [ ^ ]
Create a Setup Project in Visual Studio and this will include functionality to uninstall:

http://msdn.microsoft.com/en-us/library/19x10e5c.aspx[^]


如果您不想使用VS的安装项目,则卸载程序必须执行与安装程序相反的操作.任何安装软件都应提供一个卸载程序,该卸载程序将知道需要杀死哪些文件,注册表项等.
If you don''t want to use VS''s setup project, your uninstaller must do the opposite of what the installer does. Any installation software should provide an uninstaller which will know what files, registry keys etc it needs to kill.


这篇关于可以在C#应用程序中创建卸载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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