title: Installing a Java service on Windows 7 with NSSM
body: <p>I am trying to use Inno Setup to install a Windows service as a JAR file running under NSSM (Non-Sucking Service Manager)</p>
  
  <pre><code>nssm install JarService java -jar service.jar
  nssm start JarService
  </code></pre>
  
  <p>ends up putting my service in the "Paused" state, and it doesn't ever seem to get started.</p>
  
  <p>Since the location of <code>java.exe</code> can change with updates, I want to be able to run the service without having the explicit path to <code>java.exe</code>, how can I launch the java service without an explicit path in NSSM?</p>