[英]Winows installer (wix) install product twice
I use WIX to install test product. 我使用WIX来安装测试产品。 It's very siple with default wix settigs.
它与默认的wix settigs非常相似。
If I set product id="*", install, rebuild and instal again, i have TWO products in programs list. 如果我设置产品ID =“*”,再次安装,重建和安装,我在程序列表中有两个产品。 Why?
为什么?
my product: 我的产品:
<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.6.4" Manufacturer="Timyrlan" UpgradeCode="B3CB410C-6D45-44F0-9920-81E43A54B3ED">
PS same problem if i change 4-th digit of version. PS如果我改变版本的第4位数同样的问题。 And everything works fine if i change 3 digit
如果我改变3位数,一切正常
1.0.0.0->1.0.0.1 - problem 1.0.0.0-> 1.0.0.1 - 问题
1.0.0.0->1.0.1.0 - works fine 1.0.0.0-> 1.0.1.0 - 工作正常
Why it's instal twice? 为什么安装两次? How can i upgrade product using last digit?
如何使用最后一位数升级产品?
Ignoring Digits : Extract from the MSI SDK documentation for the ProductVersion property
: 忽略数字 :从MSV SDK文档中提取
ProductVersion property
:
" Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field...At least one of the three fields of ProductVersion must change for an upgrade using the Upgrade table.
" “
Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field...At least one of the three fields of ProductVersion must change for an upgrade using the Upgrade table.
“
AllowSameVersionUpgrades : There is the WiX concept: AllowSameVersionUpgrades="yes"
- which I do not like - that some people use to allow upgrades with the 4th digit used. AllowSameVersionUpgrades :有WiX概念:
AllowSameVersionUpgrades="yes"
- 我不喜欢 - 有些人用它来允许使用第4位数进行升级。 I do not have a list of all the problems that result (again: I don't like this concept). 我没有列出所有导致的问题(再次:我不喜欢这个概念)。 Maybe have a look here: Wix MajorUpgrade problems .
也许看看这里: Wix MajorUpgrade问题 。
Advanced Upgrade Table : Forgot one important link. 高级升级表 :忘记了一个重要的链接。 How to gain fine-grained control of the Upgrade table: Adding entries to MSI UpgradeTable to remove related products .
如何获得升级表的细粒度控制: 向MSI UpgradeTable添加条目以删除相关产品 。 And the issue of downgrades: Run Wix Custom action only during uninstall and not during Major upgrade .
降级问题: 仅在卸载期间运行Wix自定义操作,而不是在主要升级期间运行 。
Further Helpful Links : 其他有用链接 :
Links : 链接 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.