简体   繁体   English

是否可以在32位机器上使用WiX定位x64 .msi?

[英]Is it possible to target x64 .msi with WiX on a 32bit machine?

I'm developing SharePoint solutions on a virtual 32bit machine, and I use Wix to package the setup. 我正在虚拟32位机器上开发SharePoint解决方案,我使用Wix打包设置。

I'm targeting both 32bit and 64bit environments with my solutions, but in order to create 64bit MSI's, I need to have have a 64bit machine and the 64bit version of WiX. 我的解决方案是针对32位和64位环境,但为了创建64位MSI,我需要拥有64位机器和64位版本的WiX。 Normally, this wouldn't be an issue, since I would have just simply use a 64bit dev environment. 通常情况下,这不是问题,因为我只需要使用64位开发环境。

But there are some issues with developing SharePoint solutions on a 64bit platform, which more or less forces me to develop on the 32bit platform. 但是在64位平台上开发SharePoint解决方案存在一些问题,这或多或少迫使我在32位平台上开发。 Because of that, I can't create a 64bit MSI's, unless I copy the source files to a 64bit machine just to build the 64bit MSI, which feels a little bit cumbersome. 因此,我无法创建64位MSI,除非我将源文件复制到64位机器只是为了构建64位MSI,这感觉有点麻烦。

Is there any trick to flag/build the 64bit MSI package on my 32bit dev box, if it's even possible? 有没有什么技巧可以在我的32位开发盒上标记/构建64位MSI包,如果可能的话?

You do not need to run a 64-bit development machine to create a 64-bit MSI file. 您无需运行64位开发计算机即可创建64位MSI文件。

What makes an MSI file "64-bit" is simply that the "Template Summary" field in the Summary Information Stream is set to "AMD64;1033" (one possible example) instead of "Intel;1033". 使MSI文件“64位”的原因很简单,即摘要信息流中的“模板摘要”字段设置为“AMD64; 1033”(一个可能的示例)而不是“Intel; 1033”。

This MSDN article might provide you more information . 此MSDN文章可能会为您提供更多信息

AFAIK Wix工具集与平台无关,你需要安装x64版本 ,你需要在设置中使用正确的标志(有很多地方你需要明确x64,更多信息在这里 )。

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

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