如何使用命令参数</custom>从<custom action =“”>调用.exe文件

时间:2014-05-28 09:28:47

标签: c++ wix arguments windows-installer

我创建自定义操作:

<CustomAction Id="LaunchApplication" FileKey="FileKeyExe" ExeCommand="" Return="asyncNoWait"/>

并在安装后执行文件:

<InstallExecuteSequence>
 <Custom Action="LaunchApplication" After="InstallFinalize"></Custom>
</InstallExecuteSequence>

一切正常!

但我需要使用命令参数运行我的.exe文件。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

要发送exe命令行参数,您需要将它们包含在ExeCommand字段中,例如

 <CustomAction Id="ExecutingAwesomeness" ExeCommand="Awesome.exe -fireworks -parade" />
相关问题