WiX 将引导 x86 和 x64 msi 刻录到单个无 UI 引导程序中 [英] WiX burn bootstrapping x86 and x64 msi's into single No-UI bootstrapper

查看:23
本文介绍了WiX 将引导 x86 和 x64 msi 刻录到单个无 UI 引导程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的安装程序 .msi 有 x64 和 x86 版本,并且想要发布一个可执行文件,它只检查机器架构并运行 x86/x64 MSI.MSI 基本上是相同的,它们安装相同的 AnyCPU 文件,我将这些文件捆绑在一个共享的 .cab 文件中,以免安装程序的大小增加一倍.

I have x64 and x86 versions of my installer .msi, and want to ship a single executable which simply checks the machine architecture and runs the x86/x64 MSI. The MSIs are basically identical, they install the same AnyCPU files, which I bundle in a shared .cab file so as not to double the size of the installer.

到目前为止,我已经尝试过 WiX Burn,它会弹出一个我不想要的 GUI(我只想使用 MSI GUI),并且我尝试通过/silent 标志禁用刻录 GUI - 这会传播这个标志到 MSI,因此它禁用 MSI 的所有 GUI(不是我想要的).

So far I've tried WiX Burn, which pops up a GUI which I don't want (I just want to use the MSI GUI), and I tried disabling the burn GUI via /silent flag - this propagates this flag to the MSIs so it disables all GUI for MSIs (not what I want).

当我说没有默认的无 GUI 版本的 Burn bootstrapper 时,我认为我是对的,要创建一个,您必须自己编辑源代码?这听起来像是一个巨大的缺失功能?

I think I am correct when I say there is no default No-GUI version of Burn bootstrapper, and to create one you must edit the source code yourself? This sounds like a massive missing feature?

我也尝试过 DotNetInstaller,它有自己的一系列问题,用户界面令人困惑.我也试过 setupbld,它不支持带有外部驾驶室的 MSI.

I've also tried DotNetInstaller which has it's own set of problems with a confusing user interface. I've also tried setupbld which does not support MSIs with an external cab.

推荐答案

对于架构检测,您可以使用 MsiPackage 元素中的 InstallCondition 属性.

For the architecture detection you could use the InstallCondition attribute in the MsiPackage element.

简单地说就是尝试:

<MsiPackage SourceFile="..ExampleinReleasex86example.msi" Compressed="no" InstallCondition="NOT VersionNT64" />
<MsiPackage SourceFile="..ExampleinReleasex64example.msi" Compressed="no" InstallCondition="VersionNT64" />

来源:http://wix.sourceforge.net/manual-wix3/wix_xsd_msipackage.htm

这篇关于WiX 将引导 x86 和 x64 msi 刻录到单个无 UI 引导程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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