On WiX, should I have different product identifiers for 32 and 64 bit versions

I am writing a WiX installer with a common set of WiX sources for 32-bit and 64-bit versions of a product.

The question is, should I use different product identifiers for different versions?

+6
source share
2 answers

To answer my own question, which turns out to be actually incorrect, the MSDN documentation says for the ProductCode property:

For 32-bit and 64-bit versions of the application package, different product codes must be assigned.

It turns out that I was embarrassed by the fact that I thought that the product code would never change. This is not true. Yet again:

The ProductCode property is a unique identifier for a specific product release. This identifier must be different for different versions and languages.

+6
source

First, I will do the same strike for the 32-bit installer:

<Condition Message="This installer does not support 64-bit Windows! "> <![CDATA[NOT VersionNT64]]> </Condition> 

and this is for the 64-bit installer:

 <Condition Message="This installer does not support 32-bit Windows! "> <![CDATA[VersionNT64]]> </Condition> 

But back to your question. I recommend that you set the product identifier to "*". This ensures that each assembly creates a new GUID. You can always find this GUID if you want to create a patch using Orca.

An important value is UpgradeCode. This GUID creates a link between versions. I recommend one UpgradeCode for all your 32-bit installers and another UpgradeCode for all your 64-bit installers.

+3
source

Source: https://habr.com/ru/post/898218/


All Articles