如何让 WiX 生成 64 位 MSI?
我正在使用 WiX 3.6 和 VS2010。我的 32 位安装可以正常工作,我正在尝试让 64 位安装正常工作。
- 我在配置属性中将平台设置为“x64”。
- 我在安装脚本中将 Package 标记中的 Platform 属性设置为“x64”。
- 我将安装目录从“ProgramFilesFolder”更改为“ProgramFiles64Folder”。
- 我向每个组件添加了属性 Win64="yes"。
我认为这足以生成 64 位 MSI,但它仍然坚持将所有内容安装在“Program Files (x86)”而不是“Program Files”中。
我缺少什么?
I am using WiX 3.6 and VS2010. I have a 32-bit installation working and I'm trying to get a 64-bit installation working.
- I set the Platform to "x64" in the Configuration Properties.
- I set the Platform attribute in the Package tag to "x64" in the install script.
- I changed the installation directory from "ProgramFilesFolder" to "ProgramFiles64Folder".
- I added the attribute Win64="yes" to each component.
I thought this was enough to generate a 64-bit MSI, but it still insists on installing everything in "Program Files (x86)" instead of "Program Files".
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的错误。它正在构建 64 位版本,但我正在测试旧的 x64 版本,该版本尚未正确标记为 x64。一旦我正确构建了 x64 版本,生成的 MSI 就会被放置在 bin/x64/Release 中,但我仍在 bin/Release 中测试该版本。偶尔删除所有输出文件并重建是值得的。
My mistake. It was building the 64-bit version just fine, but I was testing an old x64 build which had not been correctly marked as x64. Once I had the x64 version building correctly, the resulting MSI was placed in bin/x64/Release but I was still testing the version in bin/Release. It pays to occasionally delete all your output files and rebuild.