【发布时间】:2011-01-07 17:46:29
【问题描述】:
是否可以在“LaunchConditions”之前对自定义操作进行排序?
这是我的自定义操作:
<CustomAction
Id="CA_vcAppRunning"
BinaryKey="vcShowMsg"
DllEntry="IsAppRunning"
Return="check"
Execute="immediate"/>
排序在<InstallExecuteSequence/>
<Custom Action="CA_vcAppRunning" Before="LaunchConditions" />
我试过这个,打开Orca 中的MSI 文件,发现我的自定义操作顺序为“99”。 但是当我尝试安装时,它从来没有被调用过。
我想在 LaunchConditions 之前安排这个,因为这个自定义操作应该设置一个在 LaunchCondition 中使用的属性(如果应用程序正在运行,请退出安装程序/更新程序)。
【问题讨论】:
标签: wix custom-action launch-condition