On Fri, 27 Nov 2026 15:31:31 GMT, Armin Schrenk <[email protected]> wrote:

>> Add support for native ARM64 Windows MSI pacakges to jpackage.
>> 
>> For some reasoning and more info, check out the ticket on JBS: 
>> https://bugs.openjdk.org/browse/JDK-8361207.
>> 
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Armin Schrenk has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Add MSI architecture label to WiX summary

### 🔵 Needs a closer look

Native Windows ARM64 validation is needed because metadata-only tests do not 
exercise embedded custom actions or x64-to-ARM64 upgrade, repair, and uninstall 
behavior with shared product/component identities.

**No open issues** 🎉

<details>
<summary><strong>What changed in this PR</strong></summary>

Adds native Windows ARM64 MSI support to jpackage when running on an ARM64 JDK 
with WiX 4 or newer, while preserving the x64 fallback for WiX 3.

**Changes:**
- Selects the MSI architecture based on the JDK architecture and WiX version.
- Reports the selected MSI architecture in the packaging summary.
- Adds MSI metadata inspection helpers and tests for platform selection and 
summary output.

| File | Description |
| ---- | ----------- |
| `test/​jdk/​tools/​jpackage/​windows/​WinMsiPlatformTest.java` | Adds 
verification of the generated MSI platform. |
| `test/​jdk/​tools/​jpackage/​resources/​msi-export.js` | Enables export of 
MSI summary information. |
| 
`test/​jdk/​tools/​jpackage/​junit/​share/​jdk.jpackage/​jdk/​jpackage/​internal/​summary/​StandardSummaryTest.java`
 | Checks architecture reporting in Windows packaging summaries. |
| 
`test/​jdk/​tools/​jpackage/​helpers/​jdk/​jpackage/​test/​WindowsHelper.java` 
| Adds a helper to read the MSI platform. |
| `test/​jdk/​tools/​jpackage/​helpers/​jdk/​jpackage/​test/​MsiDatabase.java` 
| Adds summary-information property lookup. |
| 
`src/​jdk.jpackage/​windows/​classes/​jdk/​jpackage/​internal/​WixPipeline.java`
 | Centralizes architecture selection and enables ARM64 with WiX 4+. |
| 
`src/​jdk.jpackage/​windows/​classes/​jdk/​jpackage/​internal/​WinBundlingEnvironment.java`
 | Includes MSI architecture in the packaging summary. |
| 
`src/​jdk.jpackage/​windows/​classes/​jdk/​jpackage/​internal/​resources/​WinResources.properties`
 | Adds the MSI architecture summary label. |
| 
`src/​jdk.jpackage/​share/​classes/​jdk/​jpackage/​internal/​summary/​StandardProperty.java`
 | Defines the MSI architecture summary property. |
</details>

<sub>Review effort: Balanced</sub>

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

PR Review: https://git.openjdk.org/jdk/pull/26093#pullrequestreview-6090389740

Reply via email to