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

Support <major.minor.update.build> version format on Windows

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 20
    • 15, 17
    • tools
    • b07
    • generic
    • windows

    Description

      Currently jpackage supports <major.minor.build> version format on Windows and fails to build installer if the value of --version option has more components.

      This is due to MSI limitations (https://msdn.microsoft.com/en-us/library/aa370859%28v=VS.85%29.aspx):
      ---
      The value of the ProductVersion property is the version of the product in string format. This property is REQUIRED.

      The format of the string is as follows:

      major.minor.build
      The first field is the major version and has a maximum value of 255. The second field is the minor version and has a maximum value of 255. The third field is called the build version or the update version and has a maximum value of 65,535.
      ---

      If the excessive components of the version string will be ignored by WiX tools and it will produce valid msi bundles we can relax the limitation of the product version string on Windows we have in jpackage. However, simply discarding parts of version strings will result in issues with update installations as data in UpgradeTable will not be accurate due to version components truncation.

      To workaround limitations of data format in UpgradeTable CA can be created. It will be the alternative to the standard FindRelatedProducts action using data from UpgradeTable.

      CA replacing FindRelatedProducts: https://github.com/hvandrie/msiCAFindRelatedProductsEx

      Attachments

        Issue Links

          Activity

            People

              asemenyuk Alexey Semenyuk
              asemenyuk Alexey Semenyuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: