[wix-users] How to make an execution order of a Custom Action configurable?

Wix Dev wixdev2019 at gmail.com
Fri Mar 1 06:53:41 PST 2019


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:

   1.

   *CreateFolder* Custom Action:

   <CustomAction Id="CreateFolder" BinaryKey="My.Ext.CA <http://my.ext.ca/>"
   DllEntry="CreateFolder" Execute="deferred">
   2.

   *ExecuteSql* Custom Action:

   <CustomAction Id="ExecuteSql" BinaryKey="My.Ext.CA <http://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?


More information about the wix-users mailing list