title: Wix run second action after first is finish
body: <p>Then I install my setup and check checkbox for launch my application then pressing finish the Setup run both programs at once(setup.exe and open picture). Is the way to run setup.exe and then setup.exe is finish instalation run picture. I mean is the way to run actions one by one and not all at the same time?? Here is my .wxs code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
    &lt;Product Id="*" UpgradeCode="xxxxxxxxxxxxxx" Version="$(var.ProductVersion)" Language="1033" Name="xxxxxx" Manufacturer="xxxx LTD"&gt;
      &lt;Package InstallerVersion="300" Compressed="yes"/&gt;
      &lt;Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" /&gt;
  
      &lt;Property Id="ALLUSERS" Value="2" /&gt; 
      &lt;Property Id="MSIINSTALLPERUSER" Value="1" /&gt;
  
      &lt;!-- Step 1: Define the directory structure --&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="InstallFiles" Name="My Application Name"&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
  
  &lt;UI&gt;
    &lt;UIRef Id="WixUI_Mondo" /&gt;
  
    &lt;!-- set property and launch the first exe --&gt;
    &lt;Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="PrepareLaunchApplication1"&gt;WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed&lt;/Publish&gt;
    &lt;Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication1"&gt;WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed&lt;/Publish&gt;
  
    &lt;!-- set property and launch the second exe --&gt;
    &lt;Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="PrepareLaunchApplication2"&gt;WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed&lt;/Publish&gt;
    &lt;Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication2"&gt;WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed&lt;/Publish&gt;
  &lt;/UI&gt;
  &lt;Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch My Application Name" /&gt;
  
  &lt;CustomAction Id="PrepareLaunchApplication1" Property="WixShellExecTarget" Value="[#Setup.exe]" /&gt;
  &lt;CustomAction Id="LaunchApplication1"
      BinaryKey="WixCA"
      DllEntry="WixShellExec"
      Impersonate="yes" 
      Return="check"
      Execute="immediate"/&gt;
  
  &lt;CustomAction Id="PrepareLaunchApplication2" Property="WixShellExecTarget" Value="[#a.png]" /&gt;  
  &lt;CustomAction Id="LaunchApplication2" 
      BinaryKey="WixCA" 
      DllEntry="WixShellExec"
      Impersonate="yes"
      Return="check"/&gt;
  
      &lt;!-- Step 2: Add files to your installer package --&gt;
      &lt;DirectoryRef Id="InstallFiles"&gt;
        &lt;Component Id="Setup.exe"&gt;
          &lt;File Id="Setup.exe" KeyPath="yes"
                Name="Setup.exe" Source="$(var.AddinFiles)"&gt;&lt;/File&gt;
        &lt;/Component&gt;
   &lt;Component Id="a.png"&gt;
          &lt;File Id="a.png" KeyPath="yes"
                Name="a.png" Source="$(var.AddinFiles)"&gt;&lt;/File&gt;
        &lt;/Component&gt;  
      &lt;/DirectoryRef&gt;
  
      &lt;!-- Step 3: Tell WiX to install the files --&gt;
      &lt;Feature Id="MainApplication" Title="Main Application" Level="1"&gt;
  
        &lt;ComponentRef Id="Setup.exe" /&gt;
        &lt;ComponentRef Id="a.png" /&gt;
      &lt;/Feature&gt;
    &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>