Should the WIX UpgradeCode be different from the x64 and x86 versions of the product?

I accept YES.

I have an installer for the x86 version, I am building an installer for the x64 version.

I'm trying to find out what happened. So far it looks pretty simple. I feel they should be different UpgradeCodes. I need to check the VersionNT64 property in the Condition condition to verify the installation.


<Condition Message="This package can be installed only on an x64 version of Windows."> VersionNT64 </Condition> 

Any other clues?

+7
source share
2 answers

I would say that yes, probably you should have different update codes for the two installers, if you do not need to be the same.

In one scenario, I can think about when suitable update codes can be useful if you previously sent only the x86 version that was installed on 32-bit and 64-bit operating systems. In this case, having the x64 version with the same update code allows you to easily process updates from the old x86 to the new x64 version on 64-bit operating systems.

Edit:

I forgot to mention that you can also use the "Msix64" property to determine the bitness. Also, you do not need to add the installation condition to x64, as an attempt to install it on a 32-bit OS will result in an error message from the Windows Installer service.

Currently, I use only one condition in the x86 installer version

 <Condition Message="You are attempting to install the x86 version in a 64-bit OS">NOT Msix64</Condition> 
+5
source

From my review, I can say that the code for the x86 version will be based on the code used on some processors 80x86 and later for 16 - 32-bit versions, while x64 will be different code for the 64-bit implementation, since it x64, not IA-64 or Intel64. The bootloader will be different, and you may need to check the status of the values โ€‹โ€‹in the BIOS (if available) and some environment variables to determine if 32 or 64-bit mode works on the computer, including the one you are developing the bootloader, if it supports one or both mode.

0
source

All Articles