How to check an installed version of a product from MSI

isabel bernely

After review a lot of posts in this site finally I decide to put mine. I am preparing an MSI file with Wix. I need to check if a particular version of an enterprise product is installed, before to install my system. I have the GUID of that product (which is the same for all versions), but I need to check if 1.10.0 version is installed. Any idea, please. Thanks in advance.

PD: I am newbie in Wix, so at this moment I am just using the wxs file created by default with the Setup Project.

Clarifying: I don't want to upgrade the software that I am installing, I need to check another program and version which my installer depends.

tjleigh

To do it properly, you probably want to use a custom action. Inside the custom action, use the MsiGetProductInfo function.

A way of doing it in pure-WiX would be to modify the example found here: How do I compare registry versions in WiX?

First create a RegistrySearch element:

<Property Id="PRODUCTVERSION">
    <RegistrySearch Id="ProductVersionSearch" Root="HKLM" Key="software\Microsoft\Windows\Current Version\Uninstall\[PRODUCTCODE]" Name="DisplayVersion" Type="raw" />
</Property>

Then use a Condition element:

<Condition Message="Product version 1.10.0 must be installed">
    <![CDATA[PRODUCTVERSION AND PRODUCTVERSION = "1.10.0"]]>
</Condition>

This would search for exactly version 1.10.0, so may not be what you want if you're looking for something like "v1.10.0 or newer"... But should get you started.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to check an installed version of a product from MSI

From Dev

msi Installer - Another version of this product is already installed

From Java

How can I find the product GUID of an installed MSI setup?

From Java

How to check the installed version of Flutter?

From Dev

How to check installed Mahout version?

From Dev

How to check paramiko version installed?

From Dev

How to check installed program version?

From Dev

How to check if some product is installed with batch file

From Dev

MSI fails to install with "A newer version of the product is already installed" although , ProductCode, ProductVersion, PackageCode are different

From Dev

MSI fails to install with "A newer version of the product is already installed" although , ProductCode, ProductVersion, PackageCode are different

From Dev

How to Get version from Comments of *.msi file?

From Java

How to check which version of Keras is installed?

From Java

How to check the installed version of React-Native

From Dev

How to check version of installed wine and uninstall it?

From Dev

How to check version of installed wine and uninstall it?

From Dev

How to check version of Aersopike tools installed on a server

From Dev

How to update PHPMailer and check installed version

From Dev

Wix - How to get user input from a previously installed msi?

From Dev

How can I check IF a version of Ghostscript is installed and IF SO where it is installed?

From Dev

How to check if a package is installed from Bash?

From Dev

MSI - is it possible to determine if a shared component is already installed by another product

From Dev

MSI - is it possible to determine if a shared component is already installed by another product

From Dev

In Ansible, how do I check if a particular version of MySQL is installed?

From Java

how to check which version of nltk, scikit learn installed?

From Dev

How do I check the version of wxPython installed on my server?

From Dev

How to check Oracle Java version if multiple versions of Java installed on Ubuntu

From Dev

How to check python anaconda version installed on Windows 10 PC?

From Dev

Version check in ionic - how to get existing installed apps to update?

From Dev

How do I check version of R language installed on my system?

Related Related

  1. 1

    How to check an installed version of a product from MSI

  2. 2

    msi Installer - Another version of this product is already installed

  3. 3

    How can I find the product GUID of an installed MSI setup?

  4. 4

    How to check the installed version of Flutter?

  5. 5

    How to check installed Mahout version?

  6. 6

    How to check paramiko version installed?

  7. 7

    How to check installed program version?

  8. 8

    How to check if some product is installed with batch file

  9. 9

    MSI fails to install with "A newer version of the product is already installed" although , ProductCode, ProductVersion, PackageCode are different

  10. 10

    MSI fails to install with "A newer version of the product is already installed" although , ProductCode, ProductVersion, PackageCode are different

  11. 11

    How to Get version from Comments of *.msi file?

  12. 12

    How to check which version of Keras is installed?

  13. 13

    How to check the installed version of React-Native

  14. 14

    How to check version of installed wine and uninstall it?

  15. 15

    How to check version of installed wine and uninstall it?

  16. 16

    How to check version of Aersopike tools installed on a server

  17. 17

    How to update PHPMailer and check installed version

  18. 18

    Wix - How to get user input from a previously installed msi?

  19. 19

    How can I check IF a version of Ghostscript is installed and IF SO where it is installed?

  20. 20

    How to check if a package is installed from Bash?

  21. 21

    MSI - is it possible to determine if a shared component is already installed by another product

  22. 22

    MSI - is it possible to determine if a shared component is already installed by another product

  23. 23

    In Ansible, how do I check if a particular version of MySQL is installed?

  24. 24

    how to check which version of nltk, scikit learn installed?

  25. 25

    How do I check the version of wxPython installed on my server?

  26. 26

    How to check Oracle Java version if multiple versions of Java installed on Ubuntu

  27. 27

    How to check python anaconda version installed on Windows 10 PC?

  28. 28

    Version check in ionic - how to get existing installed apps to update?

  29. 29

    How do I check version of R language installed on my system?

HotTag

Archive