“控制台"在安装屏幕上输出?

问题描述:

目前,我们使用安装"屏幕显示安装进度和当前正在执行的操作(例如安装步骤4").

at the moment we use the Installation screen to display the installation progress and the currently running action (e.g. "Installing step 4").

作为附加信息,我们希望向用户提供之前发生的信息,例如:

As an additional information we would like to present the user informations, what happend before, e.g.:

已安装第1步-确定

已安装第2步-确定

已安装第3步-确定

为此,我们需要在进度条下方的安装"屏幕上使用某种类型的控制台(例如,文本字段/区域).有机会这样做吗?

To do this we would need some kind of console (e.g. a text field / area) on the Installation screen below the progress bar. Is there a chance to do this?

谢谢! 弗兰克

当前,这不容易实现.您可以扩展com.install4j.runtime.beans.screens.InstallationScreen并覆盖方法protected void addScreenContent(JPanel panel, GridBagConstraints gc)以添加更多可视元素.

Currently that's not easily possible. You could extend com.install4j.runtime.beans.screens.InstallationScreen and override the method protected void addScreenContent(JPanel panel, GridBagConstraints gc) to add more visual elements.

更新:

正如弗兰克指出的那样,您可以仅使用可自定义的表单屏幕并向其中添加进度显示"组件.在激活后脚本"属性中,您必须通过调用

As Frank pointed out, you can just use a customizable form screen and add a "Progress display" component to it. In the "Post-activation script" property you would have to switch to the next screen automatically by calling

context.goForward(1,true,true);

context.goForward(1, true, true);