wix - WiX 工具集扩展:如何使自定义操作的顺序可配置?
问题描述
我正在使用自定义 WiX 工具集扩展,并且想知道是否可以使自定义操作的顺序可配置?
例如,我有两个动作:
CreateFolder自定义操作:
CustomAction Id="CreateFolder" BinaryKey="My.Ext.CA" DllEntry="CreateFolder" Execute="deferred"
ExecuteSql自定义操作:
CustomAction Id="ExecuteSql" BinaryKey="My.Ext.CA" DllEntry="ExecuteSql" Execute="deferred"
它们按以下顺序放置在 InstallExecuteSequence 中:
<InstallExecuteSequence>
<Custom Action="CreateFolder" After="InstallValidate">
NOT Installed
</Custom>
<Custom Action="ExecuteSql" Before="InstallFinalize">
NOT Installed
</Custom>
</InstallExecuteSequence>
它适用于先执行 CreateFolder CA,然后执行 ExecuteSql。但是,在某些情况下,WixExtension 用户需要先运行 ExecuteSql,然后是 CreateFolder。
我可以以某种方式指定要在 InstallExecuteSequence 中执行的 CA 订单并使其可配置吗?
解决方案
推荐阅读
- javascript - 在 chartJS 中,更改标签颜色 onhover
- java - 当父 pom 位于根项目目录中的文件夹内时,Maven 项目问题
- pg-promise - pg-promise:使用新密码更新现有连接
- java - 有没有办法防止跳过 recyclerview 的布局?
- c# - 无法使用 PHP LDAP 扩展建立 LDAP 连接
- c# - 我如何将excel文件与devexpress合并
- python - 使用 ManyToMany 和 ForeignKeys 导入 CSV
- html - 放大悬停图像库重叠
- linux - 如何从剪贴板 shell 脚本变量中读取内容
- r - 有没有办法抑制 R 中 tbl_regression 函数中的 p 值?