Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8275062

Allow jpackage create installers for services

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Draft
    • Priority: P4
    • Resolution: Unresolved
    • Fix Version/s: 19
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      The enhancement describes an additional jpackage option and will have no impact when that new option is not used.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      JDK

      Description

      Summary

      Allow jpackage to be used for creating installers for background service-type apps.

      Problem

      jpackage generated installers don't provide the functionality to register service-type apps for background execution.

      Solution

      Add ability to jpackage to install background service-type apps.

      Specification

      Add the following option to jpackage:

      --launcher-as-service
      
      Request to create an installer that will register the main application launcher as a background service-type application.

      Add the following option to the list of supported options in the additional launcher Properties file:

      launcher-as-service

      On Windows: supported for exe and msi installers.

      On Linux: supported for rpm and deb installers.

      On Macosx: supported for pkg installers and not supported for dmg installers. No support for dmg installers as they don't support custom installation actions.

      Installing multiple application launchers as background service-type apps must be supported.

      Installers must start all application launchers to be registered as background service-type apps.

      Uninstallers must stop and unregister all background service-type apps registered with the corresponding installers.

      If the option is used with an unsupported package type, jpackage must issue an error and abort execution.

      On Windows, if the option is used with --win-console argument on the command line or with win-console option in the additional launcher Properties file, jpackage must issue an error and abort execution.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              asemenyuk Alexey Semenyuk
              Reporter:
              asemenyuk Alexey Semenyuk
              Reviewed By:
              Alexander Matveev, Andy Herrick (Inactive), Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: