ICE61:这个产品应该只删除它自己的旧版本 [英] ICE61: This product should remove only older versions of itself

查看:16
本文介绍了ICE61:这个产品应该只删除它自己的旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注第二个答案 此处 以避免我的较新安装包出现已安装"消息.所以这是我改变的项目.一切正常,我正在正确安装更新版本.

I was following the second answer here in order to avoid "already installed" message for my newer installation packages. So this is the items I've changed. Everything is ok and I'm getting newer versions installed properly.

<Product Id="*" Name="Product Name" Language="1033" Version="1.9.0.0" Manufacturer="ABCD" UpgradeCode="e820aa3a-0288-45d8-a357-41bc065bbed0">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

但是,编译器给了我以下警告信息:

However, compiler gives me the following warning message:

ICE61:这个产品应该只删除它自己的旧版本.这最高版本不低于当前产品.(1.9.0.01.9.0.0)

ICE61: This product should remove only older versions of itself. The Maximum version is not less than the current product. (1.9.0.0 1.9.0.0)

我不能忽略这条消息.所以问题是如何解决这个警告?

I can't just ignore this message. So the question is how to fix this warning?

推荐答案

警告来自 AllowSameVersionUpgrades=Yes.当您在评论中写道我从不想在相同版本之间升级并且总是增加第二个(甚至第一个)"时,那么您不需要 AllowSameVersionUpgrade,所以只需将其删除.

The warning comes from AllowSameVersionUpgrades=Yes. As you write in comment "I never wanted to upgrade between identical versions and always increment second(or even first)", then you dont need AllowSameVersionUpgrade, so just remove it.

这篇关于ICE61:这个产品应该只删除它自己的旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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