Because PROPERTY <> "" implies the property exists but has no value, but with 
the Windows Installer Service, the property will be removed if it is empty.  
Hence, NOT PROPERTY is the test that should be used.

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-----Original Message-----
From: Marc Beaudry [mailto:mbeau...@matrox.com] 
Sent: Wednesday, January 14, 2015 11:32 AM
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] Two Mutually Exclusive Products

I have a simple condition question: I have my installer working as I need but I 
need clarification on something, and yes I fully understand this is of the most 
basic understanding, but it doesn't match what I am reading (probably 
misunderstanding) in documentation.

My WIX Code:

 <Property Id="OTHERPRODUCTFOUND">
      <ProductSearch UpgradeCode="GUID of SOME PRODUCT " Minimum="1.0.0.0"
Maximum="99.0.0.0" IncludeMinimum="yes" IncludeMaximum="no" />  </Property>

<Condition Message="Other Product Exists, Cannot install this one.">
      <![CDATA[NOT OTHERPRODUCTFOUND]]>
</Condition>

Question:  The product search runs as expected, my property gets populated with 
the other products GUID when it exists and does not when it doesn't exist.  So 
I expected my condition to look like this:
OTHERPRODUCTFOUND <> ""  meaning if not populated with Guid DO NOT display the 
message.

Why does NOT OTHERPRODUCTFOUND evaluate to true when search is successful, in 
other words my message shows up and vice versa. 

In code it would do something like this: 

If (OTHERPRODUCTFOUND  ==  "")  // Other product not found
        Run install as normal
Else  // Product found
        DO NOT run install

Thanks for helping me clear this simple misunderstanding up.
Marc

-----Original Message-----
From: Marc Beaudry [mailto:mbeau...@matrox.com]
Sent: January-12-2015 12:39 PM
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] Two Mutually Exclusive Products

You are correct: ProductSearch does have an UpgradeCode too, I am using wix
3.8 and the documentation of 3.8 doesn't make reference to the UpgradeCode.
I will try using 3.9.

I will also investigate (learn)  what you mean by implementing code in the ba 
(???) for the OnDetect handlers.

Thanks for your input,
Marc

-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com]
Sent: January-12-2015 11:48 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Two Mutually Exclusive Products

I'm a little confused by the comment about ProductSearch, sorry.

- ProductSearch: requires a product code which I cannot use

The wix:ProductSearch for use in authoring an MSI takes 
ProductSearch/@UpgradeCode as the input.

The util:ProductSearch for use in a bundle takes either a ProductCode or an 
UpgradeCode (which I think was added in wix 3.9 ).

I use a bundle driven msi(s) method and so in a similar situation where I have 
mutually exclusive 'products' (suites of products).  In my situation rather 
than use a bal:Condition, I implement code in the ba, which is called in the 
OnDetectXxx handlers to determine if I need to communicate with the user and 
terminate the setup.  



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Two-Mutually-E
xclusive-Products-tp7598832p7598833.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
www.gigenet.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
www.gigenet.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to