1

我有 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>
4

1 回答 1

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

试试看它是否有效..:)

于 2012-11-20T09:37:14.473 回答