在控制台模式下从另一个install4j安装程序中启动install4j安装程序 [英] Launching an install4j installer from within another install4j installer in console mode

查看:102
本文介绍了在控制台模式下从另一个install4j安装程序中启动install4j安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装程序A.运行时,它将使用运行可执行文件或批处理文件"操作启动安装程序B.

I have an installer A. When it runs it launches installer B using the "Run executable or batch file" action.

在GUI模式下,它运行正常.

In GUI mode this runs fine.

但是,在无头Ubuntu(或通过-c标志)上,安装挂起. 查看安装程序B的日志文件,即使它应在控制台模式下运行,它似乎仍在尝试运行欢迎屏幕":

However, on headless Ubuntu (or passing the -c flag) the installation hangs. Looking at the log file of installer B it looks like it is attempting to run the "Welcome Screen" even though it should run in console mode:

[INFO] com.....install4j.extensions.WelcomeFormPanelScreen [ID WelcomeScreen]: Show screen

安装程序A的日志清楚地显示-c标志已通过:

The log for installer A clearly shows the -c flag was passed:

[INFO] com.install4j.runtime.beans.actions.misc.RunExecutableAction [ID 21125]: Execute action
   Property environmentVariables: {}       
   Property returnCodeVariable: 
   Property rollbackArguments: null
   Property rollbackExecutable: null
   Property rollbackWorkingDirectory: null
   Property stderrFile: null
   Property stderrRedirectionMode: No redirection
   Property waitForStreams: false
   Property stderrVariableName: 
   Property stdinFile: null
   Property stdinString: 
   Property stdoutFile: null
   Property stdoutRedirectionMode: No redirection
   Property stdoutVariableName: 
   Property workingDirectory: /opt/folder
   Property failOnStderrFileError: false
   Property failOnStdinFileError: false
   Property failOnStdoutFileError: false
   Property includeParentEnvironmentVariables: true
   Property keepConsoleWindow: true
   Property logArguments: true
   Property showWindowsConsole: true
   Property useRollbackExecutable: false
   Property wait: true
   Property stdinRedirectionMode: No redirection
   Property timeout: 0
   Property arguments: [-c]

当我使用-c选项从命令行单独运行安装程序B时,它将在控制台模式下运行而没有问题.

When I run installer B by itself from the command line with the -c option it runs in console mode without issues.

是否还有其他人遇到此问题或知道解决方法?

Has anyone else run into this issue or knows of a workaround?

谢谢, 贝拉

推荐答案

对于遇到此问题的其他人-我联系了install4j支持人员,并被告知:

For anyone else who has had this issue - I contacted install4j support and was told that:

您必须使用-q标志启动它.install4j不支持在控制台模式下嵌套安装程序."

"You would have to start it with the -q flag. Nesting installers in console mode is not supported by install4j."

这篇关于在控制台模式下从另一个install4j安装程序中启动install4j安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆