使用“任何CPU”编译wix项目而不是“X86” [英] Compile wix project using "Any CPU" instead of "X86"

查看:255
本文介绍了使用“任何CPU”编译wix项目而不是“X86”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译一个wix项目,并且wix启动编译通过MSbuild的所有现有的项目,我可以使用任何CPU而不是X86或64位?

When I compile a wix project, and wix launch the compilation via MSbuild of all the existing projects, can I use "Any CPU" instead of "X86" or "64 bit" ?

如果不是,如何使用任何CPU编译项目?

If not, how can I compile the projects using "Any CPU" ?

推荐答案

是否可以为任何CPU 编译WIXPROJ,然后答案是否。

If your question is whether you can compile WIXPROJ for Any CPU then the answer is no.


当构建任何CPU平台
时,不会构建WiX项目,因为 Windows Installer程序包是特定于CPU的。

您的WIXPROJ中的 TargetPlatform 设置定义了Windows安装程序处理文件夹变量,注册表和GAC等的方式。例如,安装项目将使用 [ProgramFiles64Folder] 变量,如果安装项目的 TargetPlatform [ProgramFilesFolder]

The TargetPlatform setting in your WIXPROJ defines the way Windows Installer treats folder variables, registries and GAC etc. For example, the setup project will use the [ProgramFiles64Folder] variable if the TargetPlatform of the setup project is x64; and [ProgramFilesFolder] for x86.

检查这个答案,将会有所帮助:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Any-CPU- platform-in-wix-3-0-td3441097.html

Check this answer, it will be helpful: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Any-CPU-platform-in-wix-3-0-td3441097.html

这篇关于使用“任何CPU”编译wix项目而不是“X86”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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