如何添加在使用 install4j 安装应用程序后调用的自定义选项?

how to add custom options that gets invoked after the application is installed using install4j?

是否可以在使用install4j安装应用程序后有一个自定义选项。类似于带有屏幕和操作的自定义应用程序,用户需要在安装应用程序后通过单击直接调用它。

是的,它们在 install4j 中被称为 "installer applications"。在 "Installer->Screens & Actions" 步骤中,单击添加按钮,然后单击 select "Add application" 并从应用程序模板中选择 "Empty custom application"。

您可以通过调用

通过 API 调用此类应用程序
com.install4j.api.launcher.ApplicationLauncher.launchApplication(
  "<id>", null, false, null
);

有关 Javadoc,请参阅 https://www.ej-technologies.com/resources/install4j/help/api/com/install4j/api/launcher/ApplicationLauncher.html