[英]Wix Installer app won't install when run twice and uninstalls the app
[英]Winows installer (wix) install product twice
我使用WIX来安装测试产品。 它与默认的wix settigs非常相似。
如果我设置产品ID =“*”,再次安装,重建和安装,我在程序列表中有两个产品。 为什么?
我的产品:
<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.6.4" Manufacturer="Timyrlan" UpgradeCode="B3CB410C-6D45-44F0-9920-81E43A54B3ED">
PS如果我改变版本的第4位数同样的问题。 如果我改变3位数,一切正常
1.0.0.0-> 1.0.0.1 - 问题
1.0.0.0-> 1.0.1.0 - 工作正常
为什么安装两次? 如何使用最后一位数升级产品?
忽略数字 :从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.
“
AllowSameVersionUpgrades :有WiX概念: AllowSameVersionUpgrades="yes"
- 我不喜欢 - 有些人用它来允许使用第4位数进行升级。 我没有列出所有导致的问题(再次:我不喜欢这个概念)。 也许看看这里: Wix MajorUpgrade问题 。
高级升级表 :忘记了一个重要的链接。 如何获得升级表的细粒度控制: 向MSI UpgradeTable添加条目以删除相关产品 。 降级问题: 仅在卸载期间运行Wix自定义操作,而不是在主要升级期间运行 。
其他有用链接 :
链接 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.