Skip to content

fix(release): mark the Windows ARM64 MSI as Arm64 - #383

Merged
linroid merged 1 commit into
mainfrom
fix/windows-arm64-msi-platform
Oct 4, 2026
Merged

linroid merged 1 commit into
mainfrom
fix/windows-arm64-msi-platform

Conversation

@linroid

@linroid linroid commented Oct 4, 2026

Copy link
Copy Markdown
Owner

What

Adds a release workflow step that, after jpackage builds the Windows ARM64 MSI, changes its summary information to target the Arm64 platform (Windows Installer schema 500), then reads it back to confirm.

Why

The ARM64 MSI fails to install with Windows Installer error 1723: "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run." The portable .zip works.

Inspecting the v0.0.3 release MSIs with msitools:

Template (platform) Binary.JpCaDll (jpackage's wixhelper.dll)
windows-x64.msi x64;1033 PE32+ x86-64
windows-arm64.msi x64;1033 PE32+ Aarch64

jpackage (with the runners' WiX 3.11) always writes x64 as the platform. Its JpFindRelatedProducts and JpCheckInstallDir custom actions call into JpCaDll. For an x64 package, Windows Installer runs that DLL in its x64 (emulated) custom action host, which can't load an ARM64 DLL, so every install fails. With the platform set to Arm64, the DLL runs in the native ARM64 host. WiX's own WixCA and WixUIWixca are 32-bit and still run in the x86 host.

The x64 MSI is unaffected: its DLL is x64 and imports only system libraries.

Notes for reviewers

  • Not yet verified on Windows. The step only runs on the windows-11-arm release job, and neither PowerShell nor Windows Installer is available on macOS. It throws if the MSI isn't x64;… before the edit or Arm64;… after it, so a failure breaks the release job instead of shipping a bad package.
  • Schema 500 means Windows Installer 5.0, which every Windows on ARM version has.
  • Until a release includes this, ARM64 users can install the x64 MSI, which runs under emulation, or use the portable ARM64 .zip.

jpackage (WiX 3.11) writes x64;1033 as the platform of every MSI, while the
ARM64 package embeds jpackage's ARM64 custom action DLL (wixhelper.dll).
Windows Installer runs that DLL in its x64 custom action host, which can't
load it, so installing fails with error 1723 ("A DLL required for this
install to complete could not be run"). Retarget the package to Arm64 with
schema 500 after jpackage builds it, so the DLL runs natively.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T11:25:05.248880Z 864d384 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 353 files  +  378   1 380 suites  +378   10m 22s ⏱️ + 3m 31s
 8 960 tests +4 075   8 740 ✅ +3 855  220 💤 +220  0 ❌ ±0 
10 299 runs  +4 078  10 079 ✅ +3 858  220 💤 +220  0 ❌ ±0 

Results for commit 864d384. ± Comparison against base commit e9a7914.

@linroid
linroid merged commit 89f6e05 into main Oct 4, 2026
13 checks passed
@linroid
linroid deleted the fix/windows-arm64-msi-platform branch October 4, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant