本文介绍了Visual Studio:如何自动卸载以前安装的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的Web 设置项目,它从一个可部署项目中读取数据.

I have a simple Web Setup project that reads from a Deployable Project.

即使我已将 Setup 设置为 DetectNewerInstalledVersionfalse 我总是会收到 annoying 警告框,提示存在以前的安装并且我需要转到控制面板并找到删除它的软件...

Even though I have set the Setup to DetectNewerInstalledVersion to false I always get that annoying alert box that a previous installation exists and I need to go to the Control Panel and find the software to remove it...

有没有办法在新的安装对话框中添加一个脚本,可以说找到以前的版本,按NEXT卸载它.?

Is there a way to add a script in a new new installation Dialog that could say A previous version was found, press NEXT to uninstall it. ?

推荐答案

就我而言,我发现安装项目不是配置管理器的一部分.因此,它不会重新构建解决方案和使用新版本的安装文件,也不会生成 ProductCode.

In my case I found out that the setup project wasn't part of the configuration manager.Therefore, it wasn't rebuld on solution rebuilds and setup file with the new version and ProductCode wasn't generated.

解决方案只是右键单击安装项目,然后单击重建.

The solution is simply to right click on the setup project and click rebuild.

希望这对未来的读者有所帮助:)

Hope this help to future readers :)

这篇关于Visual Studio:如何自动卸载以前安装的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:44