diff --git a/tools/install4j/oie-installer-config.install4j b/tools/install4j/oie-installer-config.install4j index 9a7ae3565..d38a5ab84 100644 --- a/tools/install4j/oie-installer-config.install4j +++ b/tools/install4j/oie-installer-config.install4j @@ -193,8 +193,9 @@ - + sys.installationDir + startServiceNow context.getBooleanVariable("sys.streamlinedInstallation") @@ -313,8 +314,9 @@ return true; - + sys.installationDir + startServiceNow context.getVariable("sys.responseFile") == null @@ -403,11 +405,109 @@ return true; + + + Installation Successful + The service is installed and will run automatically on boot. + + !context.isConsole() && !context.isUnattended() + + + + The Open Integration Engine service has been installed and is configured to run automatically when the computer starts up. + +Would you like to start the service now? + + + + + Start the service now + + startServiceNow + + + + + + + Starting Service + Please wait... + + + context.getBooleanVariable("startServiceNow") // Skip screen altogether if startServiceNow is false + + + context.getWizardContext().setControlButtonVisible(ControlButtonType.NEXT, false); + context.getWizardContext().setControlButtonVisible(ControlButtonType.PREVIOUS, false); + context.goForward(1, true, true); // startServiceNow was true, start action automatically + + + + + + + + + + + + + com.install4j.runtime.beans.actions.services.StartServiceAction startAction = + new com.install4j.runtime.beans.actions.services.StartServiceAction(); + startAction.setLauncherId("25"); + startAction.init(context); + boolean succeeded = false; + try { + succeeded = startAction.execute(context); + } catch (Exception e) { + com.install4j.api.Util.log(e); + succeeded = false; + } + context.setVariable("serviceStartSucceeded", Boolean.valueOf(succeeded)); + return true; + + + + + + + + + + Starting the Open Integration Engine service... + + + + - + + + The Open Integration Engine service is installed and will start automatically when the computer boots. + +The service was not started during installation. + + !context.getBooleanVariable("startServiceNow") + + + + The Open Integration Engine service has been initiated. + +If the server does not come online, please check the logs in the installation directory for errors. + + context.getBooleanVariable("startServiceNow") && context.getBooleanVariable("serviceStartSucceeded") + + + + The Open Integration Engine was successfully installed, but the service could not be started. + +Please check the service status in your operating system's service manager and review the server logs in the installation directory for errors. + + context.getBooleanVariable("startServiceNow") && !context.getBooleanVariable("serviceStartSucceeded") + + - ${form:finishedMessage} + Visit the <a href="https://docs.openintegrationengine.org">official documentation website</a> for more information. diff --git a/tools/install4j/readme.html b/tools/install4j/readme.html index 339d6ffef..83315a2ac 100644 --- a/tools/install4j/readme.html +++ b/tools/install4j/readme.html @@ -1,7 +1,7 @@ - -

Open Integration Engine ${compiler:sys.version}

+ +

Open Integration Engine ${compiler:sys.version}

This installer sets up a fully functional version of the engine with minimal user input, or upgrades an existing installation. @@ -9,15 +9,15 @@

Open Integration Engine ${compiler:sys.version}

Notes

    -
  • Native services are installed for all supported platforms and are configured to start automatically.
  • -
  • macOS users: A reboot will automatically start the service.
  • +
  • Native services are installed for all supported platforms and are configured to start automatically on boot.
  • +
  • An option will be provided to start the service immediately after installation.
  • A new installation uses the default configuration files in the conf directory; the installer does not prompt for customization. This includes ports (default: 8080 and 8443), log and app data paths, and password requirements.
  • - An upgrade replaces the program files from the previous installation. + An upgrade replaces the program files after uninstalling the previous installation. Files in the conf directory are kept and are not updated with new defaults. Directories created at runtime, such as appdata, are also kept.