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

harald goci harald.goci at panagenda.com
Wed Mar 14 08:13:49 PDT 2018


"When the FindRelatedProducts action detects a related product installed on
the system, it appends the product code to the property specified in this
field. " from
http://wixtoolset.org/documentation/manual/v3/xsd/wix/upgradeversion.html
I would change the condition to <![CDATA[NOT Installed AND
VERSION_10_7_1_INSTALLED]]>

BR,
Harald Goci
Senior Software Engineer

Email: harald.goci at panagenda.com - Web: www.panagenda.com
Phone: +43 1 890 12 89-44 - Fax: +43 1 890 12 89-15

(Embedded image moved to file: pic00778.jpg)

panagenda GmbH - Schreyvogelgasse 3/10 - 1010 Vienna - Austria
Registered Office: Vienna - HG Wien - FN 293516t - VAT-ID: ATU63362738
Executive Directors: Florian Vogler (CEO & CTO), Felix Vogler (CFO & COO)

(Embedded image moved to file: pic12316.jpg)

The information in this E-Mail is confidential and privileged. It is
intended solely for the addressee. Access to this E-Mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken in reliance on it is prohibited
and will be unlawful. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.




From:	Brian E via wix-users <wix-users at lists.wixtoolset.org>
To:	WiX Users <wix-users at lists.wixtoolset.org>
Cc:	Brian E <brianke at gmail.com>
Date:	14.03.2018 16:06
Subject:	[wix-users] Check for minimum version or not installed
Sent by:	"wix-users" <wix-users-bounces at lists.wixtoolset.org>



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

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/



More information about the wix-users mailing list