[wix-users] Condition executing when it shouldn't

KONDURU Pavan Pavan.KONDURU at 3ds.com
Tue Jun 26 11:06:40 PDT 2018


I think it should be the below , because the launch conditions are evaluating the expression to be true to proceed.

<![CDATA[Installed AND PRE_10_7_1_INSTALLED]]>

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Brian E via wix-users
Sent: Tuesday, June 26, 2018 10:58 AM
To: WiX Users
Cc: Brian E
Subject: [wix-users] Condition executing when it shouldn't

I have setup a conditional message based on if the installation is an
upgrade and a specific product version is found.  The following works and
only display the message if the product is being upgraded AND a version
prior to 10.7.1 was found to already be installed.

   <!-- Check that version10.7.1 or later is already installed
         only run when upgrading (NOT Installed) and version 10.7.1 NOT yet
installed (NOT PRE_10_7_1_INSTALLED)  -->
    <Property Id="PRE_10_7_1_INSTALLED" Secure="yes" />
    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Maximum="10.7.1"
                      Property="PRE_10_7_1_INSTALLED"
                      IncludeMaximum="no"
                      OnlyDetect="yes" />
    </Upgrade>
    <Condition Message="Please install version 10.7.1 before installing
this version.">
      <![CDATA[NOT Installed AND NOT PRE_10_7_1_INSTALLED]]>
    </Condition>

I have found that this will also display the message during an uninstall
which prevents a user from uninstalling.  Unfortunately, our product has
been released and now some clients are unable to upgrade or uninstall.  Is
there anything that can be done at this point with a future release to
allow for upgrades or uninstalls?  Is there someway to change a registry
setting or something that would allow the user to upgrade/uninstall?


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/
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer



More information about the wix-users mailing list