安装 WiX 重复版本产品
我使用 WiX 3.5 创建了 MSI“appA.msi”,并在 .wxs 文件中具有离散的 GUID,因为
Product Id
UpdgradeCode
Package Id
我没有指定任何组件 GUID。
它的安装方式如下:
...program files...
.....homedir
.......launcher.exe
.........appdirA
...........app.exe
...........app.exe.config
然后,我使用名为“appB.msi”的同一项目构建了另一个 MSI,所有位都编辑了 app.exe.config 文件,更改了 GUID,
Product Id
UpdgradeCode
Package Id
并且我希望它安装如下:(
...program files...
.....homedir
.......launcher.exe
.........appdirB
...........app.exe
...........app.exe.config
是的启动器。 exe 是位于同一位置的同一文件)
但我没有安装,而是收到消息“该产品的另一个版本已安装”。
但据我所知,版本完全不同,对吗?
谢谢。
I created a MSI "appA.msi" with WiX 3.5 and have discrete GUIDs in the .wxs file for
Product Id
UpdgradeCode
Package Id
I do not have any component GUIDs specified.
It installs like this:
...program files...
.....homedir
.......launcher.exe
.........appdirA
...........app.exe
...........app.exe.config
I then built another MSI with the same project called "appB.msi", all bits the saedited the app.exe.config file, changed the GUIDs for
Product Id
UpdgradeCode
Package Id
And I expected it to install like this:
...program files...
.....homedir
.......launcher.exe
.........appdirB
...........app.exe
...........app.exe.config
(yes launcher.exe is the same file going in the same spot)
But instead of installing, I get the message "Another version of this product is already installed."
But AFAIK the versions are completely different, right?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,你最好使用 ??????-???包代码和产品代码的格式,而不是使用必须不断编辑的静态格式。
不设置组件 GUID 意味着这些组件将在系统上成为孤立组件。
您是否需要这两个包共存,或者它们应该相互排斥。根据答案,您可能需要付出更多的努力。
Generally speaking you are best off using the ?????-??? format for the package code and for the product code rather than using a static one that you have to keep editing.
Not setting the component GUIDs means the components will be orphaned on the system.
Do you need these two packages to co-exist or should they be mututally exclusive. Depending on the answer you may need to put a little more work into them.