title: wix, install files and run bat file
body: <p>I have problem using wix to build msi installer which will install some bat file and run it. I found some example on the internet, but i was not able to make it work :/ here is my wix source file</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="44A8F987-6B89-422B-B41F-1364AE1EF0D5" Name="my_name" Language="1033" Version="1.11.5164" Manufacturer="company" UpgradeCode="BD8652F4-1C1A-4825-9799-7DFB499B9F12"&gt;
          &lt;Package Description="Test file in a Product" Comments="Simple test" InstallerVersion="200" Compressed="yes" /&gt;
          &lt;Media Id="1" Cabinet="simple.cab" EmbedCab="yes" /&gt;
          &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
              &lt;Directory Id="ProgramFilesFolder" Name="PFiles"&gt;
                  &lt;Directory Name="my_folder" Id="MY_FOLDER"&gt;
                    &lt;Component Id="CONFIGURE.BAT" DiskId="1" Guid="041ED78B-3D42-4EBD-8DAE-29D94DEFFC20"&gt;
                           &lt;File KeyPath="yes" Id="file_configure.bat" Name="configure.bat" Source="C:\Documents and Settings\root\Desktop\some_path\configure.bat" /&gt;
                    &lt;/Component&gt;  
                  &lt;/Directory&gt;
              &lt;/Directory&gt;
          &lt;/Directory&gt;
          &lt;Feature Id="MainFeature" Title="Main Feature" Level="1"&gt;
                     &lt;ComponentRef Id="CONFIGURE.BAT" /&gt;
          &lt;/Feature&gt;
          &lt;UI /&gt;
          &lt;UIRef Id="WixUI_Minimal" /&gt;
  
          &lt;CustomAction Id="BatchCmd" Property="BatchRun" Value="&amp;quot;[#file_configure.bat]&amp;quot;" Execute="immediate"&gt;
          &lt;/CustomAction&gt;
          &lt;CustomAction Id="BatchRun" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="yes"&gt;
          &lt;/CustomAction&gt;
          &lt;InstallExecuteSequence&gt;
              &lt;Custom Action="BatchCmd" Before="BatchRun"&gt;NOT Installed&lt;/Custom&gt;
              &lt;Custom Action="BatchRun" After="InstallFiles"&gt;NOT Installed&lt;/Custom&gt;
          &lt;/InstallExecuteSequence&gt;  
      &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p><code>Configure.bat</code> file is installed correctly, but it won't run during install. Plz help</p>