inno-setup - 如何将 java 设置与我的应用程序设置绑定(bind)?

标签 inno-setup install4j

我是java初学者。我已经使用 java swing 完成了一个应用程序。现在我想对该应用程序进行设置或安装。 我一直在尝试 install4j.jar 转换为 .exe 文件并使用 "inno setup compiler" 进行安装和它运行成功。但问题是,此设置在未安装 java 的计算机上运行,​​但应用程序未运行,并会因未安装 java 运行时环境而生成错误。

如何在我的系统用户的计算机上使用我的应用程序安装 java

最佳答案

install4j 中,您需要将安装程序配置为静态 bundle 动态 bundle 。静态 bundle 将随安装程序一起提供 JRE,动态 bundle 将在安装时下载 JRE。

来自help page :

Static bundle

The selected JRE will be distributed in your media file.

Dynamic bundle

A dynamic bundle is downloaded on demand. If the user already has a suitable JRE installed, that JRE will be used. If there is no such JRE available on the target machine, the installer will download the dynamically bundled JRE from the URL that you specify in the text fields below.

关于inno-setup - 如何将 java 设置与我的应用程序设置绑定(bind)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23099906/

相关文章:

inno-setup - 创新设置: Disable finish page

inno-setup - Inno Setup 遍历目录及其子目录

inno-setup - Inno 设置 : a shortcut to program's folder in Start menu

java - 在升级中测试Install4j回滚

java - Install4j:脚本生成器?

installation - 创新设置 : Disable components page on upgrade

inno-setup - "Unknown Identifier ' FileOpen '"尝试在 Inno Setup 代码中检测锁定文件时

java - Install4j:如何使用时间戳启用日志记录

java - 防止旧版本安装在新版本之上

macos - 准备助手后 install4j 安装程序在 OS X 上挂起