On Thu, 3 Dec 2026 10:06:26 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:
> 
>   Set JpInstallerVersion to value 500 for ARM64 installers

tl;dr:
* i'll change the product code calculation to also take the platform into 
account
* the upgradeCode calculation stays the same

----------
I read more about the 
[ProductCode](https://learn.microsoft.com/en-us/windows/win32/msi/product-codes)
 and 
[UpgradeCode](https://learn.microsoft.com/en-us/windows/win32/msi/upgradecode).

Some points about Product Code:
> ...significant changes are made to a product then the product code should 
> also be changed to reflect this
> ...32-bit and 64-bit versions of an application's package must have different 
> product codes

Especially the latter speaks for different product codes (although it its about 
bitness). And regarding my concern for side-by-side installation and breaking 
packages, WiX offers `AllowSameVersionUpgrades="yes"` in the `MajorUpgrade` 
element, meaning an arm64 installer would replace a x64 installer and vice 
versa, _if they share the same UpgradeCode_.

For the UpgradeCode:
> ...representing a related set of products. The UpgradeCode is used [...] to 
> search for related versions of the product that are already installed.
> Across different versions of the same product, you may never need to change 
> the 
> [UpgradeCode](https://learn.microsoft.com/en-us/windows/win32/msi/upgradecode).
>  Each stand-alone product should have its own UpgradeCode. A product suite 
> should also have its own UpgradeCode

My interpretation is, the UpgradeCode should not change. I have one app, with 
two versions: arm64 and x64. Normally, x64 and arm64 are not completely 
different products, they are closely related. Also, here i see the risk of a 
breaking change if not done cautiously ("my installer created with jpackage 28 
does not update my product"). Of course, the above side-by-side-preventing 
strategy would then also work. (-;

That said, does changing the product code calculation have any backwards 
compatibility breaking effects?

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

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

Reply via email to