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

查看:115
本文介绍了如何获得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标记中的平台属性设置为 x64。

  • 我更改了安装目录从 ProgramFilesFolder到 ProgramFiles64Folder。

  • 我向每个组件添加了Win64 = yes属性。

  • 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.

我认为这足以生成64位MSI,但它仍然坚持将所有内容都安装在程序文件(x86)中,而不是程序文件中。

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天全站免登陆