MSI 安装程序在未删除先前安装的情况下失败 [英] MSI Installer fails without removing a previous install

查看:40
本文介绍了MSI 安装程序在未删除先前安装的情况下失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个 MSI,我想要部署并经常更新.不幸的是,当您安装 MSI,然后尝试安装同一 MSI 的较新版本时,它会失败并显示已安装此产品的另一个版本.此版本的安装无法继续..."之类的消息.MSI 是使用 Visual Studio 2008 安装项目构建的.我曾尝试将删除以前的版本"属性设置为 true 和 false,以便让新版本覆盖旧安装,但没有任何效果.在以前的一家公司,我知道 Wise 和 Advanced Installer 构建的安装程序没有这个问题.是否有我缺少的设置?还是 VS 2008 安装项目不支持我想要的功能?

I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI was built with a Visual Studio 2008 Setup Project. I have tried setting the "Remove Previous Versions" property to both true and false, in an effort to just make newer versions overwrite the older install, but nothing has worked. At a previous company I know I did not have this problem with installers built by Wise and Advanced Installer. Is there a setting I am missing? Or is my desired functionality not supported by the VS 2008 Setup Project?

推荐答案

我已经使用 VS 2005 Pro 构建了许多正确执行此操作的 MSI.

I have built numerous MSIs with VS 2005 Pro that do this correctly.

您确定部署项目的版本"属性已增加?此属性与应用程序中程序集的版本无关,如果 MSI 的 Version 属性与您尝试覆盖的版本属性相同,您将看到此错误消息.

Are you sure that the 'Version' property of the deployment project has been incremented? This property is independent of the version of the assemblies in the application, and this is the error message you will see if the Version property of the MSI is the same as it was for the one you are trying to overwrite.

这篇关于MSI 安装程序在未删除先前安装的情况下失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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