问题
In Intall4j, at the end of installation I just want to initialize something by executing a command line like:
java -jar filename.jar
How can I archive this task with install4j
?
Thanks
回答1:
Add a "Run executable or batch file" action to the "Installation screen" and set the following properties:
"Executable" property: ${installer:sys.javaHome}/bin/java
"Arguments" property: -jar; filename.jar (in the editor one argument per line)
来源:https://stackoverflow.com/questions/24634695/install4j-how-to-execute-command-line-java-jar-filename-jar-at-the-end-of-ins