How to install a product only once on a 64-bit OS?

I have 2 installer versions for the same product:

  • 32 bit version
  • 64-bit version (this is a copy of the 1st with minimal changes)

They work fine, but now I can install both versions on a 64-bit OS.

Question: how to allow installation of only one version of a product on one machine?

+4
source share
1 answer

Do you want to install the 32-bit version on 64-bit O / S if the 64-bit version is not installed or the 32-bit version will be installed only on 32-bit O / S?

Depending on your answer, you can either authorize the 32-bit installation using LaunchCondition, which uses the VersionNT64 property to make sure it is not 64-bit O / S (there is no such permission for the 64-bit version, since MSI will not allow you to install 64 -bit version run on a 32-bit platform), or you will have to use the Uprade table with an attribute only for detection to pull out the existence of a mutually exclusive product and hat in LaunchCondition.

+3
source

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


All Articles