On Wed, 5 Feb 2025 20:11:36 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> Enable MSI installers to block installation if the version of Windows is too 
> old.
> 
> jpackage will read major and minor OS versions from PE headers of the main 
> launcher and `java.dll` in the app image. The combined version is the minimal 
> Windows version these executables can run. Thus, it will be a lower bound for 
> the Windows version the installer supports. 
> 
> The value of the combined version is passed as `JpExecutableOSVersion` WiX 
> variable to a new `os-condition.wxf` WiX fragment. The fragment compares the 
> value of `JpExecutableOSVersion` WiX variable with the value of `VersionNT` 
> MSI property. If the value of the latter is less the installation is blocked.
> 
> The fragment can be overridden in the resource directory. This makes this 
> feature fully customizable.

This pull request has now been integrated.

Changeset: e7157d17
Author:    Alexey Semenyuk <asemen...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/e7157d174c19a3562c4bf19760760cb1de13cb0e
Stats:     406 lines in 14 files changed: 396 ins; 2 del; 8 mod

8150442: Enforce Supported Platforms in Packager for MSI bundles

Reviewed-by: almatvee, cstein

-------------

PR: https://git.openjdk.org/jdk/pull/23472

Reply via email to