Install4j : How to execute command line java -jar filename.jar at the end of installation

萝らか妹 提交于 2019-12-24 01:18:12

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!