如何让 WiX 生成 64 位 MSI? [英] How do I get WiX to generate a 64-bit MSI?

查看:23
本文介绍了如何让 WiX 生成 64 位 MSI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 WiX 3.6 和 VS2010.我有一个 32 位安装工作,我正在尝试让一个 64 位安装工作.

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.

  • 我在配置属性中将平台设置为x64".
  • 我在安装脚本中将 Package 标记中的 Platform 属性设置为x64".
  • 我将安装目录从ProgramFilesFolder"更改为ProgramFiles64Folder".
  • 我为每个组件添加了属性 Win64="yes".

我认为这足以生成 64 位 MSI,但它仍然坚持将所有内容安装在Program Files (x86)"而不是Program Files"中.

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 位版本就好了,但我正在测试一个旧的 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.

这篇关于如何让 WiX 生成 64 位 MSI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆