If my early am debugging is close, I think what is happening is… search.cpp,
MsiProductSearch calls WiuEnumRelatedProductCodes, passing in TRUE to indicate
to return only the highest code. So both by intent and by early AM tracing
tells me that is should work that way. Do you have a test case/example that’s
failing?
From: Jack Hennessey [mailto:[email protected]]
Sent: Saturday, June 14, 2014 8:05 AM
To: WiX toolset developer mailing list
Subject: Re: [WiX-devs] Should util:ProductSearch/@UpgradeCode find the highest
installed product?
The behavior you describe is exactly the intended behavior (find the highest
versioned related product and return its product code to the search).
If it isn't working that way then it is a bug.
What results are you seeing when there are multiple related products?
On Sat, Jun 14, 2014 at 7:16 AM, Heath Stewart
<[email protected]<mailto:[email protected]>> wrote:
While closing one bug (“wixforme”) I ended up opening another:
http://wixtoolset.org/issues/4445/
Let me prefix this by saying that “UpgradeCode” is ill-named and often
misunderstood. First of all, as many on this list know, just having the same
UpgradeCode doesn't make an upgrade (I probably get asked that question once a
week). But the associated actions don't even mention upgrading. In fact,
FindRelatedProducts is really what puts UpgradeCode into perspective: it just
finds any products with UpgradeCodes mentioned in the Upgrade table.
Internally when we wrote util:ProductSearch/@UpgradeCode it was intended and
does find the highest version installed (since the search results are singular
currently). I recommend doing the same thing with public WiX but wanted to hear
what others think. I don't consider this a breaking change. If setup devs are
using a chain of major upgrades then they'll still find 0 or 1 installed
products, but for setup devs that might use UpgradeCodes for relating products
they'll get the same type of results they would with internal WiX.
- Heath from his Surface Pro
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
WiX-devs mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs