I have a custom Java runtime image for Windows called java.exe and I can simply execute java -jar HelloWorld.jar
to run my HelloWorld application.
Using Inno Setup, I want to create an installer for my HelloWorld application. I can create an installer for java.exe, but obviously it would just run my custom Java image, whereas what I want is to run java -jar HelloWorld.jar
.
Does anyone know how this can be achieved? Inno Setup does not seem to support application parameters.
I found a hack, which is to create a batch file that would execute my command. The problem is that it opens an extra CMD window. I was able to overcome this using a visual basic script that calls the batch file. It works, but I wonder if there is a better way.