have tried with and without CDATA tags, but can't get the behavior I want
regardless of what I do!


<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
<?define ProductName="myProdName" ?>
...
<SetProperty Id="ARPINSTALLLOCATION" Value="[CUSTOMDIR]"
After="CostFinalize" />
...
<Custom Action="myCustAct" After="RemoveFolders">Installed AND NOT
UPGRADINGPRODUCTCODE AND
                    (ARPINSTALLLOCATION &gt;&lt; $(var.ProductName))
</Custom>
...


The installation works beautifully, myCustAct is properly ignored on
installations and upgrades (as expected), but when doing a removal:
myCustAct always runs regardless of whether or not ARPINSTALLLOCATION
contains the var.ProductName !!!   It should only happen when the product
name is found in (a part of) the ARPINSTALLLOCATION string ... can someone
clue me in on how to correct this to get the behavior I'm after?

I've tried: 
with and without quotes, and while the installation always builds and runs
properly, 
I'm not getting the proper behavior on removal.   :(  Help? :)

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-based-on-a-string-in-custom-action-tp6739641p6739641.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to