Unless I'm totally off base, the line provided does persist ARPINSTALLLOCATION in the unistall environment (it's being explicitly set after CostFinalize regardless of whether this is an initial installation, repair, an update, or a removal.) Am I mistaken?
As for CUSTOMDIR, I didn't provide those lines because I didn't think they were relevant... but it too has been explicitly set ... I store the value in the registry when the product is installed, seed with that value from the key retrieved if/when it is present (during updates, removals) - and when the value is not present (initial installation) I provide a default value which the person running the installation can override. What I'm trying to accomplish: finding the proper syntax for the 3rd condition I want to put on myCustAct: ARPINSTALLLOCATION must contain var.ProductName in order for myCustAct to execute. I've tried: and a handful of similar lines for the condition, but regardless of what I specify, MyCustAct always executes (as if the 3rd condition doesn't exist) when I'm removing a previous installation... IF ARPINSTALLLOCATION wasn't persisted, I would expect the condition to always fail (as it would never contain my application's name) but it's doing the opposite, it's always succeeding! Even when the application name isn't present in the path ... hence my problem. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-based-on-a-string-in-custom-action-tp6739641p6740584.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