尽管使用-q和-varfile运行,但install4j仍会提示

尽管使用-q和-varfile运行,但install4j仍会提示,install4j,Install4j,我正在linux上使用-q和-varfile标志运行install4j二进制文件。它仍然提示我输入所有选项 ./myInstaller.sh -q -varfile response.varfile -VskipRestore=true Starting Installer ... This will install Zephyr 4.1 on your computer. OK [o, Enter], Cancel [c] 我还验证了response.varfile被复制到安装文件夹中的.i

我正在linux上使用-q和-varfile标志运行install4j二进制文件。它仍然提示我输入所有选项

./myInstaller.sh -q -varfile response.varfile -VskipRestore=true
Starting Installer ...
This will install Zephyr 4.1 on your computer.
OK [o, Enter], Cancel [c]

我还验证了response.varfile被复制到安装文件夹中的.install4j文件夹中。有什么明显的遗漏吗?

在unix上的无人值守模式下,会出现上述异常(StackOverflowerError)。文档建议返回null,这将导致以下错误:

java.lang.NullPointerException
at com.install4j.runtime.installer.frontend.headless.UnattendedScreenExecutor$1.run(Unknown Source)
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(Unknown Source)
at com.install4j.runtime.installer.frontend.headless.UnattendedScreenExecutor.getProgressInterface(Unknown Source)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.execute(Unknown Source)
at com.install4j.runtime.installer.controller.Controller$1.run(Unknown Source)
下面的脚本很好用

UnattendedProgressInterface unattend = DefaultUnattendedProgressInterface();
return unattend;