Launch4j JRE Installation or bundled

独自空忆成欢 提交于 2019-12-11 16:37:59

问题


I'll ship my application as .exe file on a cdrom.

When the end user gonna start the program, the following events should occurs (in case he hasn't got any valid JRE installation):

  1. If the user hasn't got an internet connection, the program (exe file) should use an embedded JRE (shipped with the cdrom)

  2. If the user has got an internet connection, he should be redirected to the JRE download location (java.com). He should then download the JRE and install it. I won't use the bundled JRE for a user with an internet connection.

I configured both download path and JRE bundle in Launch4J, but I can't find how i could configure it for my specialities. Anyone got a clue or solution?

Thx


回答1:


Refer to file:///C:/Program%20Files/Launch4j/web/docs.html#Configuration_file

Certain conditions must be met as follows:

Using <path> in jre tab: Run if bundled JRE and javaw.exe are present, otherwise stop with error.

Using <path> + <minVersion> [+ <maxVersion>] in jre tab: Use bundled JRE first, if it cannot be located search for Java, if that fails display error message and open the Java download page.

Using <minVersion> [+ <maxVersion>] in jre tab: Search for Java, if an appropriate version cannot be found display error message and open the Java download page.

So, you must meet the second condition...



来源:https://stackoverflow.com/questions/7610765/launch4j-jre-installation-or-bundled

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