是否可以在“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 中使用的属性(如果应用程序正在运行,请退出安装程序/更新程序)。