title: Wix's util:CloseApplication extension doesn't seem to work
body: <p>I'm trying to close a process before uninstallation using Wix. I've confirmed that it works as long as there's a visible window, but if there isn't a visible window (which is the case most of the time with this app since it's a system tray app), the uninstaller just hangs, and eventually continues with the uninstallation, leaving the process running.</p>
  
  <p>According to <a href="http://sourceforge.net/mailarchive/message.php?msg_name=E66649032AD92B42901BF5835C76A27F51CC%40harwood.x2systems.com" rel="noreferrer">this forum post</a>, it seems like Wix has had trouble closing minimized apps in the past, so I wonder if this is related? </p>
  
  <p>Any suggestions as to what else I can do to make sure the process gets shut down? Is there any way I can try and capture the message in my app using the Win32 api maybe?</p>
  
  <p>Here's the CloseApplication declaration:</p>
  
  <pre><code>&lt;util:CloseApplication Id="CloseApp" CloseMessage="yes" Target="App.exe" RebootPrompt="yes" /&gt;
  </code></pre>
  
  <p>And here's the custom action:</p>
  
  <pre><code>&lt;Custom Before="InstallInitialize" Action="WixCloseApplications"&gt;REMOVE = "ALL"&lt;/Custom&gt;
  </code></pre>