title: NSIS Detect running background process
body: <p>I need the ability to look for another running process that is in the background while my NSIS installer is executing. This other process must be terminated and uninstalled before the new installer is completed.</p>
  
  <p>I've tried using the FindProc plugin to find the process and also the KillProc plugin to kill the process. Each of those plug-ins returns nothing as a result.</p>
  
  <p><code>FindProcDLL::FindProc "MyApplication.exe"</code></p>
  
  <p><code>KillProcDLL::KillProc "MyApplication.exe"</code></p>
  
  <p>I also tried nsProcess plug-in and it also does not work.</p>
  
  <p><code>nsProcess::_KillProcess "MyApplication.exe" $R0</code></p>
  
  <p>It seems people have success with these plug-ins but I don't know why it's not working in my scenario unless it has something to do with background processes.</p>
  
  <p>Any help would be appreciated.</p>