title: Kill process before (re)install using "taskkill /f /im" in Inno Setup
body: <p>I install a service/daemon, which needs to be killed before uninstall and reinstall.</p>
  
  <p>I already found out <a href="https://stackoverflow.com/questions/14023790/how-to-execute-program-before-the-uninstallation-starts">how to do it for uninstall</a>:</p>
  
  <pre><code>[UninstallRun]
  Filename: "taskkill"; Parameters: "/im ""My Service.exe"" /f"; Flags: runhidden
  </code></pre>
  
  <p>The <code>[Run]</code> section, however, runs after install, so I can't use it for that. What is the best way to kill the process using <code>taskkill</code> before install?</p>
  
  <p>Please note that I specifically want to kill the process. <a href="https://stackoverflow.com/questions/3507853/close-running-version-of-program-before-installing-update-inno-setup">A more complex solution using IPC</a> offers no benefits in my case, I just want to execute <code>taskkill</code> before installing a particular file.</p>