[wix-users] How to run CA only on Uninstall
Magi, Sampattakumar S
Sampattakumar.Magi at in.unisys.com
Thu Dec 17 03:36:08 PST 2015
session.CustomActionData["Directory"]
Can u check if the immediate CA that sets this CA is sending the value properly? Check the log file what value is getting copied to cadata prop
Regards,
Sampat
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Mark Vulfson
Sent: Tuesday, December 15, 2015 1:01 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] How to run CA only on Uninstall
I am trying to get my Custom Action to ONLY run on honest to goodness
uninstall (repair is acceptable) but I can't seem to get the condition
quite right.
The CA keeps running on minor upgrade always (i.e. maintenance mode).
This is what I tried:
<Custom Action="UninstallOnlyCA" After="RemoveFiles">
<![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
</Custom>
and:
<Custom Action="UninstallOnlyCA" After="RemoveFiles">
<![CDATA[REMOVE~="All" OR MaintenanceMode="Remove"]]>
</Custom>
Neither gets me what I want. How can I make it run only during an actual
uninstall not during upgrade, not during maintenance mode, or install?
Thanks!
Mark
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list