Hello Everyone,
I have two mutually exclusive products I need to write an installation for.
These two products are part of our daily builds so I cannot predict what the
Package and Product codes will be for the current and future releases.
I have done some research and have found a few alternatives as solutions,
but none seem to be the correct way of doing this.
- ProductSearch: requires a product code which I cannot use
- AppSerach???
- FileSearch
- RegistrySearch
- Custom Action (To detect if other product is installed and warn user to
uninstall product before running the current installation)
The only thing (Unless I am misunderstanding something) is that I know the
UpgradeCode of both products,, as these never change.
Ideally here is the behavior I would like in the end.
- If other product is installed, then warn the user of the condition and
cancel the current installation
- Upgrades of the same product behave as normal. Using the <MajorUpgrade>
Tag
Here is something I tried based on some code I found on StackOverflow
<Property Id=" OTHERPRODUCTINSTALLED " Secure="yes" />
<Upgrade Id="Upgrade GUID of other Product ">
<UpgradeVersion Minimum="1.0.0.0" Maximum="99.0.0.0" Property="
OTHERPRODUCTINSTALLED " IncludeMinimum="yes" IncludeMaximum="no" />
</Upgrade>
<Condition Message="Other Product Installed... Cancel installation.">
<![CDATA[OTHERPRODUCTINSTALLED]]>
</Condition>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is
already installed." />
Let me know if this is the best approach, or if you have a better
suggestion, I would welcome that too.
Thanks
Marc
------------------------------------------------------------------------------
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.
vanity: www.gigenet.com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users