On Sat, 21 Nov 2026 10:41:15 GMT, Armin Schrenk <[email protected]> wrote:

>> test/jdk/tools/jpackage/windows/WinMsiPlatformTest.java line 68:
>> 
>>> 66:             } else {
>>> 67:                 expectedPlatform = "x64";
>>> 68:             }
>> 
>> Am I right that the MSI package arch depends on the WiX version? If WiX3 is 
>> installed, the architecture is x64; if WiX4+ is installed, it's arm64.
>> 
>> Before the change, it was always x64, regardless of the WiX version.
>> 
>> This change breaks backward compatibility. Did you consider this implication?
>
>> Before the change, it was always x64, regardless of the WiX version. [...] 
>> This change breaks backward compatibility. Did you consider this implication?
> 
> Simply said, no. But producing an installer with a different label is an 
> integral part of this PR. It follows from the question "Given a ARM64 
> Windows, what architecture MSI should the JDK produce?"
> 
> Currently an ARM64 JDK produces an MSI marked for x64 platforms, but the 
> basic payload is NOT x64 (i.e. app launcher `jpackageapplauncher.exe`). _This 
> is clearly a bug_, because the jpackage does not fail and simply produces a 
> broken installer. From my point of view, this is not a desired behavior the 
> JDK should keep.
> 
> With my changes, we reduce the bug surface by fixing it for WiX 4 and above.
> 
> 
> ┌───────────────────────────────┬─────────┬─────────────────────────────────────────────┐
> │        jpackage's JDK         │   WiX   │                MSI platform       
>           │
> ├───────────────────────────────┼─────────┼─────────────────────────────────────────────┤
> │ x64 (on x64 or ARM64 Windows) │ 3 or 4+ │ x64                               
>           │
> ├───────────────────────────────┼─────────┼─────────────────────────────────────────────┤
> │ ARM64                         │ 4+      │ Arm64 (new)                       
>           │
> ├───────────────────────────────┼─────────┼─────────────────────────────────────────────┤
> │ ARM64                         │ 3       │ x64, with ARM64 payloads (as 
> before)        │
> └───────────────────────────────┴─────────┴─────────────────────────────────────────────┘
> 
> 
> 
> It can be also fixed for WiX3, version 3.14+ (released Feb. 2024). Reducing 
> even further the bug window.

Sounds good. I agree this is more of a bug fix, not an enhancement. We don't 
need a complementary CSR.

I think leaving WiX3 behind is OK for now. Currently, the minimum supported WiX 
version by jpackage is 3.0. Making jpackage support arm64 msi-s with WiX 3.14+ 
will add unnecessary complexity. We'd rather bump the minimum supported version 
to 3.14 and then enable arm64 msi-s. This can be a follow-up fix.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26093#discussion_r4670235908

Reply via email to