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

查看:308
本文介绍了WiX将x86和x64 msi的引导程序刻录到单个No-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标志来禁用Burn 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 bootstrap 时,我认为我是正确的,要创建一个版本,您必须自己编辑源代码吗?这听起来像是一个巨大的缺失功能?

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="..\Example\bin\Release\x86\example.msi" Compressed="no" InstallCondition="NOT VersionNT64" />
<MsiPackage SourceFile="..\Example\bin\Release\x64\example.msi" Compressed="no" InstallCondition="VersionNT64" />

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

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

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