【问题标题】:install4j ExecuteLauncherAction in Unattended mode无人值守模式下的 install4j ExecuteLauncherAction
【发布时间】:2016-03-01 12:35:29
【问题描述】:

我正在无人参与模式下运行我们生成的安装程序(使用 -q 和 -splash “标题”)向用户显示进度。

在安装结束时,我想启动已安装的应用程序,因此我在 FinishedScreen 添加了一个 ExecuteLauncherAction,并带有一个预选的复选框(以启动应用程序)。但在无人值守模式下,应用程序不会启动。日志显示了这一点

[INFO] com.install4j.runtime.beans.screens.InstallationScreen [ID 6]: Rollback barrier reached
       command: move 1 screens, executing actions, checking condition
[INFO] com.install4j.runtime.beans.screens.FinishedScreen [ID 10]: Show screen
       Variable changed: executeLauncherAction=true[class java.lang.Boolean]
[INFO] com.install4j.runtime.beans.screens.FinishedScreen [ID 10]: command: finish
       cleaning up
       Finished

有没有办法强制无人值守模式下的安装程序执行启动器?

【问题讨论】:

    标签: java install4j


    【解决方案1】:

    当您将“执行启动器”操作添加到“完成”屏幕并以“是”回答“附加确认”问题时,install4j 添加一个条件表达式

    context.getBooleanVariable("executeLauncherAction") && (!context.isUnattended())
    

    到行动。您可以将“条件表达式”属性更改为

    context.getBooleanVariable("executeLauncherAction")
    

    也可以在无人值守模式下执行操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多