I am in progress with a custom WiX Toolset Extension and would like to know, if it is possible to make a custom action's order configurable?
For example, I have two actions:
CreateFolder Custom Action:
CustomAction Id="CreateFolder" BinaryKey="My.Ext.CA" DllEntry="CreateFolder" Execute="deferred"
ExecuteSql Custom Action:
CustomAction Id="ExecuteSql" BinaryKey="My.Ext.CA" DllEntry="ExecuteSql" Execute="deferred"
They are placed in the InstallExecuteSequence in the next order:
<InstallExecuteSequence>
<Custom Action="CreateFolder" After="InstallValidate">
NOT Installed
</Custom>
<Custom Action="ExecuteSql" Before="InstallFinalize">
NOT Installed
</Custom>
</InstallExecuteSequence>
It works fine for executing CreateFolder CA first, and then ExecuteSql. But, in some cases it is required for WixExtension user to run ExecuteSql first, and CreateFolder comes next.
Can I somehow specify a CA order to be executed within InstallExecuteSequence and make it configurable?