简体   繁体   中英

How can I specify in wix that the resulting MSI installs files depending on system architecture (x64 vs ARM64)?

For our product we don't want to bother the user with different installers depending on system architecture. Now we want to install only the x64 binaries on an x64 Windows and only ARM64 binaries on a native ARM64 Windows.

It puzzles me that there seems to be no built-in functionality for this. Of course I could write a custom action and find out via IsWow64Process2 , but this seems a bit overengineered for such a simple thing!

Did I overlook some easy way to do this?

根据WiX Package 元素的文档,这可以使用Platform属性指定,但是文档还指出应该避免使用此属性,以支持命令行上的-arch标志。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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