同时运行2个自定义操作会出错

时间:2012-11-20 09:02:53

标签: wix windows-installer custom-action

我有2个自定义操作同时运行。如何在第一个完成后安排它们运行。这是我的代码:

<CustomAction Id="StartAppOnExit1" FileKey="InterUMIEXE" ExeCommand="" Execute="deferred" Return="asyncNoWait" Impersonate="no" />
<InstallExecuteSequence>
   <Custom Action="StartAppOnExit1" Before="InstallFinalize">$InterUMIEXE=3</Custom>
</InstallExecuteSequence>

<CustomAction Id="StartAppOnExit2" FileKey="Python" ExeCommand="" Execute="immediate" Return="asyncNoWait" Impersonate="no" />
<InstallExecuteSequence>
   <Custom Action ="StartAppOnExit2" Before="InstallFinalize">$Python=3</Custom>     
</InstallExecuteSequence>

1 个答案:

答案 0 :(得分:3)

<InstallExecuteSequence>
 <Custom Action="StartAppOnExit1" Before="InstallFinalize">$InterUMIEXE=3</Custom>
 <Custom Action ="StartAppOnExit2" After="StartAppOnExit1">$Python=3</Custom>     
</InstallExecuteSequence>

尝试一下,看看它是否有效.. :)