[英]manual inputs embed in msi using wix
I would like to install a third party executable that expects some user inputs on a user machine.To this aim, I would like to make the installation silent. 我想安装一个第三方可执行文件,希望在用户计算机上有一些用户输入。为此,我想使安装静音。
Is there a way to achive using wix? 有没有办法使用wix实现?
The most "correct" way would be to create a Bundle
that used a Chain
to install the ExePackage
and your MsiPackage
. 最“正确”的方法是创建一个使用
Chain
来安装ExePackage
和MsiPackage
的Bundle
。 You can control the inputs to the ExePackage
via the InstallCommand
attribute. 您可以通过
InstallCommand
属性控制对ExePackage
的输入。 The InstallCommand
attribute can use Variable
s from the Bundle
by doing something like: 通过以下操作,
InstallCommand
属性可以使用Bundle
的Variable
:
<ExePackage InstallCommand="[MyVariable] -someswitch"
DetectCondition="DetectedThirdPartyInstalled"
SourceFile="path\to\thirdparty.exe" />
If you really must try to install the executable during your .msi then you'll need to use a CustomAction
and the ExeCommand
attribute can pass parameters. 如果确实必须尝试在.msi期间安装可执行文件,则需要使用
CustomAction
,并且ExeCommand
属性可以传递参数。 That would look something like: 看起来像:
<CustomAction FileKey="FileIdForThirdPartyExe" ExeCommand="[MyProperty] -someswitch" />
Take a look in the WiX.chm for those key words for more other details. 在WiX.chm中查看这些关键字,以获取更多其他详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.