【问题标题】:Launching an install4j installer from within another install4j installer in console mode在控制台模式下从另一个 install4j 安装程序中启动 install4j 安装程序
【发布时间】:2013-07-11 00:03:10
【问题描述】:

我有一个安装程序 A。当它运行时,它会使用“运行可执行文件或批处理文件”操作启动安装程序 B。

在 GUI 模式下运行良好。

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

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

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

[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 时,它在控制台模式下运行而没有问题。

有其他人遇到过这个问题或知道解决方法吗?

谢谢, 贝拉

【问题讨论】:

    标签: install4j


    【解决方案1】:

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

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

    【讨论】:

    • 我已经使用 -q 标志启动它,但它对我不起作用。在 CentOS 上,我遇到了与您完全相同的问题。这解决了你的问题吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多