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
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
- relates to
-
JDK-8271344 Windows product version issue
-
- Resolved
-
-
JDK-8311104 dangling-gsl warning in libwixhelper.cpp
-
- Resolved
-