设置和卸载 [英] setup and unistall

查看:71
本文介绍了设置和卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我用C#编写了服务,并准备了该服务的设置,但现在
如果要先安装此服务,然后再安装最新的安装程序,我想卸载它.

我该怎么做?
谢谢.

Hi all,

I wrote a service in c# and prepared a setup for that service but now
I want to uninstall this if the service has been installed before and then install the latest setup.

How I do this?
thanks.

推荐答案

我用c#编写了一个服务,并为该服务准备了一个设置,但现在
如果要先安装此服务,然后再安装最新的安装程序,我想卸载它.


根据当前问题,您只需要配置安装程序即可.使用RemovePreviousVersions 删除正在安装的应用程序的所有早期版本.此后,安装程序将自动检查它,如果发现它已经安装,则将其删除.

看看详细的部署安装程序的良好链接 [ ^ ].
I wrote a service in c# and prepared a setup for that service but now
I want to uninstall this if the service has been installed before and then install the latest setup.


Based on the current question, you just need configure installer to do so. Use RemovePreviousVersions to remove any previous versions of the application being installed. After this, Installer would automatically check for it and if it founds that it was already installed then it would be removed.

Have a look at this thread for not so similar discussion[^] but that tells about the above said properties.

Further, I found a good link of detailed deployement installer[^].


这篇关于设置和卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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