简体   繁体   English

如何让 WiX 生成 64 位 MSI?

[英]How do I get WiX to generate a 64-bit MSI?

I am using WiX 3.6 and VS2010.我正在使用 WiX 3.6 和 VS2010。 I have a 32-bit installation working and I'm trying to get a 64-bit installation working.我有一个 32 位安装工作,我正在尝试让一个 64 位安装工作。

  • I set the Platform to "x64" in the Configuration Properties.我在配置属性中将平台设置为“x64”。
  • I set the Platform attribute in the Package tag to "x64" in the install script.我在安装脚本中将 Package 标记中的 Platform 属性设置为“x64”。
  • I changed the installation directory from "ProgramFilesFolder" to "ProgramFiles64Folder".我将安装目录从“ProgramFilesFolder”更改为“ProgramFiles64Folder”。
  • I added the attribute Win64="yes" to each component.我为每个组件添加了属性 Win64="yes"。

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".我认为这足以生成 64 位 MSI,但它仍然坚持将所有内容安装在“Program Files (x86)”而不是“Program Files”中。

What am I missing?我错过了什么?

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.它正在构建 64 位版本就好了,但我正在测试一个旧的 x64 版本,它没有被正确地标记为 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.一旦我正确构建了 x64 版本,生成的 MSI 就会被放置在 bin/x64/Release 中,但我仍在测试 bin/Release 中的版本。 It pays to occasionally delete all your output files and rebuild.偶尔删除所有输出文件并重建是值得的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM