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