[wix-users] Check for minimum version or not installed

Brian E brianke at gmail.com
Wed Mar 14 08:06:22 PDT 2018


I am trying to create a condition that will check for a certain version
when installing an update and not proceed if the version is not met.  I
only want to do this check if the product is installed, on new installs the
installation should proceed as normal.

I have the following condition but it is not terminating the install if a
version prior to 10.7.1 is installed::

    <!-- Check that version 10.7.1 or later is present -->
    <Property Id="VERSION_10_7_1_INSTALLED"  Secure="yes" />
    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Minimum="10.7.1"
                      Property="VERSION_10_7_1_INSTALLED"
                      IncludeMinimum="yes"
                      OnlyDetect="yes" />
    </Upgrade>
    <Condition Message="Please install version 10.7.1 before installing
this version.">
      <![CDATA[NOT Installed OR NOT VERSION_10_7_1_INSTALLED]]>
    </Condition>

Any help would is appreciated


Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein


More information about the wix-users mailing list