如何为Windows应用程序创建卸载文件 [英] how do I create an uninstall file for my windows application

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

问题描述

我想为Windows应用程序创建一个卸载文件,但是我很难找到有关它们的信息.Sombody可以简单地说明卸载文件的工作原理,和/或向我提供指向演练的链接.

I would like to create an uninstall file for my windows application but I am having a difficult time finding information on them. Could sombody breifly explain the workings of a uninstall file and/or provide me with a link to a walkthrough.

vs2008,c#,.net

vs2008,c#, .net

推荐答案

如果使用Visual Studio安装程序项目为应用程序创建安装程序,则将获得该安装程序.这与NullSoft安装程序和WiX的工作方式相同.它的工作方式是MSI文件(安装程序文件)不是可执行文件,而是与应用程序文件打包在一起的数据库文件,它告诉Windows将文件放置在何处.Windows在安装您的应用程序时,会记录其操作,因此,在卸载时,它会撤消日志中的内容.实际上,它要复杂得多,但基本上就是这样.

If you create an installer for your app using a visual studio installer project, you get the uninstaller with it. This works the same way with the NullSoft installer and WiX. The way this works is the MSI file (installer file) is not an executable, but rather a database file packaged with your application files, and it tells windows where to put the files. When Windows installs your app, it logs what it does, and so when it uninstalls, it undoes what is in the log. It's actually a lot more complicated than that, but basically that's how it works.

NullSoft和WiX比基本的Visual Studio安装程序项目要好得多,后者既困难又非常隐秘,因此请尝试使用其中之一.

NullSoft and WiX are way better than the basic visual studio installer project, which is difficult and very cryptic, so try to use one of those if you can.

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

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