Search code examples
wixwindows-installercustom-action

Running 2 custom actions at the same time gives error


I have 2 custom actions running at the same time. How do I schedule them to run after the 1st one has finished. Here is my code:

<CustomAction Id="StartAppOnExit1" FileKey="InterUMIEXE" ExeCommand="" Execute="deferred" Return="asyncNoWait" Impersonate="no" />
<InstallExecuteSequence>
   <Custom Action="StartAppOnExit1" Before="InstallFinalize">$InterUMIEXE=3</Custom>
</InstallExecuteSequence>

<CustomAction Id="StartAppOnExit2" FileKey="Python" ExeCommand="" Execute="immediate" Return="asyncNoWait" Impersonate="no" />
<InstallExecuteSequence>
   <Custom Action ="StartAppOnExit2" Before="InstallFinalize">$Python=3</Custom>     
</InstallExecuteSequence>

Solution

  • <InstallExecuteSequence>
     <Custom Action="StartAppOnExit1" Before="InstallFinalize">$InterUMIEXE=3</Custom>
     <Custom Action ="StartAppOnExit2" After="StartAppOnExit1">$Python=3</Custom>     
    </InstallExecuteSequence>
    

    Try that and see if it works..:)