title: Prompt user to close application during uninstall (in WiX)
body: <p>I am using Windows Installer XML 3.0 (WIX3) to install some software.</p>
  
  <p>Everything works fine, however, I'm having a really hard time to handle the following use case: the installed software is <strong>still running</strong>, when the user tries to <strong>uninstall</strong> it. The default behavior seems to remove all files but lets the application running (which is hard to see in my case, because it's sitting in the task tray).</p>
  
  <p>I added the following code in my <code>installer.wxs</code> file:</p>
  
  <pre><code>&lt;InstallExecuteSequence&gt;
    &lt;Custom Action="WixCloseApplications" Before="RemoveFiles" /&gt;
  &lt;/InstallExecuteSequence&gt;
  
  &lt;util:CloseApplication Id="CloseFoobar"
                         CloseMessage="no"
                         Description="FooBar is still running!"
                         ElevatedCloseMessage="no"
                         RebootPrompt="no"
                         Target="foobar.exe" /&gt;
  </code></pre>
  
  <p>But this doesn't work - even worse, it shows a dialog that asks for a reboot during <strong>install</strong>!</p>
  
  <p>What would be the correct way to do it?</p>