如何在安装新版本时自动删除旧版本 [英] how to remove older version automatic when installing new one
本文介绍了如何在安装新版本时自动删除旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用vs 2008
我创建了我的C#应用程序的设置...
运行良好...
但是如果我进行任何更改并再次创建安装程序...
那我该如何卸载旧的应用程序并通过运行安装程序安装新的应用程序...
请建议我...
hi i am using vs 2008
i create a setup of my C# application ...
its running fine...
but if i make any changes and create setup once again ...
then how can i uninstall my older application and install new one by running setup...
Please suggest me...
推荐答案
这只是安装文件中的一项设置,只要您的新版本安装程序是在旧版本安装程序的基础上构建的(因此知道它们是相关的)
This is just a setting in the setup file, so long as your new version installer is built off your old one ( so it knows they are related )
在安装项目属性中,
将"DetectNewerInstalledVersion"设置为true.
它将提示您卸载旧版本,然后再安装同一软件的新版本.
In the setup project properties,
set "DetectNewerInstalledVersion" to true.
It will prompt you to uninstall older version before installing new version of the same software.
这篇关于如何在安装新版本时自动删除旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文