我想为我的安装程序添加先决条件,我成功地将 .net 框架添加为先决条件,但我想在安装我的实际应用程序之前添加“k-lite 编解码器包”。
问问题
162 次
1 回答
0
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle>
<Chain>
<ExePackage
SourceFile="..\Redist\KLite_Codec_Pack_1090_Full.exe"
DetectCondition="ExeDetectedVariable"
InstallCommand="/verysilent /ACTION=Install"
RepairCommand="/verysilent ACTION=Repair /hideconsole"
UninstallCommand="/verysilent ACTION=Uninstall /hideconsole"
Compressed="yes"
Permanent="yes"/>
</Chain>
</Bundle>
</Wix>
上面的代码解决了我的问题。通过 installCommand /verysilent 将静默安装 klite 包。
于 2015-01-14T13:35:39.423 回答