On Thu, 3 Dec 2026 00:50:58 GMT, Alexander Matveev <[email protected]> wrote:

> Should we have unique ProductCode in case if the same app is available as x64 
> and ARM64? In this case ProductCode will be same between x64 and ARM64.

I'd keep it shared. Normally, it is the same product, so sharing the 
ProductCode makes Windows Installer treat them as one product. A reason for 
different product codes is side-by-side installation 
(https://learn.microsoft.com/en-us/windows/win32/msi/changing-the-product-code).
 Both packages install the same product into the same directory with the same 
component GUIDs, which can damage the other package.

Regarding JpInstallerVersion: WiX v4+ already raises it to 500 for arm64 with a 
warning (RequiresMsi500forArmPackage); I'll set it in main.wxs based on 
$(sys.BUILDARCH) so x64 packages keep 200.

For the `--app-image` check: jpackage doesn't validate the architecture of 
supplied images on any platform today; the package architecture follows the JDK 
running jpackage. This is the status quo of, so I'd keep it out of this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/26093#issuecomment-7373915471

Reply via email to