如何让 WiX 生成 64 位 MSI?

发布于 2024-10-05 04:10:45 字数 351 浏览 0 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

虫児飞 2024-10-12 04:10:45

我的错误。它正在构建 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文