在C#中创建卸载程序Exe [英] Making an Uninstaller Exe in C#

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

问题描述

我已经制作了一个c#应用程序设置并且它使用sql server数据库现在我想要一个卸载程序,



卸载程序可以做到

1)从程序文件中删除所有文件

2)从sql server中删除数据库



当我卸载我的软件时/>






Plz帮我创建它..



提前致谢

I have made one c# application setup and its using sql server database now i want an uninstaller for it ,

Uninstaller can be able to do
1)Delete all files from Program Files
2)drop database from sql server

when i m uninstalling my software



Plz help me to create it ..

Thanks in advance

推荐答案

如果您使用 Visual Studio Installer 项目来创建安装程序,那么该安装程序也适用于修复和卸载 exe 例如安装项目安装向导

卸载将删除他安装的所有文件。

如果动态添加某个文件,则只需添加一些具有相同名称和扩展名的虚拟文件Application Folder然后安装程序将删除它。

您能详细说明如何创建安装程序吗?
If you use Visual Studio Installer Project to create installer then that installer also work for repair and uninstall of exe eg Setup Project or Setup Wizard.
Uninstall will delete all the files that he had install.
If some file are added dynamically then just add some dummy file with same name and extension in the Application Folder Of installer then installer will remove that also.
Can you elaborate how do you create you installer?


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

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