title: Upgrading Windows service using Inno Setup
body: <p>I've created a basic Windows service installation using Inno Setup. both install and uninstall works properly. </p>
  
  <p>However, I'm having issues with the upgrade procedure.</p>
  
  <p>In order to upgrade the service executable it is necessary to stop the service, and only after the service is completely stopped can the updated executables be placed in the target folder.</p>
  
  <p>How can I execute a service-stop command and wait for the service to be completely stopped before the file deployment step is initiated?</p>