[英]WiX bootstrapper silent install with custom /a argument
Is it possible to initiate a silent installation of a WiX bundle through the use of a command line argument in the format of /a
or /arg
? 是否可以通过使用
/a
或/arg
格式的命令行参数来启动WiX捆绑包的静默安装?
I'm aware of the available command line arguments accepted by the wixstdba bootstrapper . 我知道wixstdba bootstrapper接受的可用命令行参数 。
Specifically, we need to do this using the argument /s /v/qn
argument. 具体来说,我们需要使用参数
/s /v/qn
来执行此操作。
NB: Executing the bootsrapper with the command line setup.exe /s /v/qn
actually does initiate a silent install, and I assume this is because the BA interprets the /s
as equivalent to -s
. 注意:使用命令行
setup.exe /s /v/qn
执行引导程序实际上确实会启动静默安装,并且我认为这是因为BA将/s
解释为与-s
等效。 But since I can't find this behaviour documented anywhere, I am nervous about relying upon it, and would prefer an explicit method for doing this. 但是由于我在任何地方都找不到这种行为的记录,因此我对依赖它感到担心,因此希望使用显式的方法来执行此操作。
TL;DR TL; DR
The reason we would like to support this argument /format
is due to the automatic upgrade operation of a previous version of the software. 我们之所以支持此参数
/format
的原因是由于该软件先前版本的自动升级操作。 This version of the software launched an automatically downloaded upgrade to itself, which was an InstallShield package, with the switches /s /v/qn
to launch the MSI as a silent installation. 该软件的此版本启动了对其自身的自动下载升级,这是一个InstallShield软件包,使用开关
/s /v/qn
可以以静默方式启动MSI。 Those switches are coded into a constant field, so the fact that we are moving from InstallShield to WiX presents this problem. 这些开关被编码到一个常量字段中,因此我们从InstallShield迁移到WiX的事实提出了此问题。
We would like to replicate this functionality but need a way to translate this set of arguments to either a -silent
or -passive
argument, or find some other method to accomplish this task. 我们想复制此功能,但需要一种方法将这组参数转换为
-silent
或-passive
参数,或者找到其他方法来完成此任务。
Burn supports both -
and /
as switch characters. Burn同时支持
-
和/
作为切换字符。 Silent UI mode is supported as q
, quiet
, s
, and silent
with leading -
and /
. 静音UI模式的支持作为
q
, quiet
, s
,和silent
与领先的-
和/
。 See the code at https://github.com/wixtoolset/wix3/blob/develop/src/burn/engine/core.cpp#L1098 . 请参阅https://github.com/wixtoolset/wix3/blob/develop/src/burn/engine/core.cpp#L1098上的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.