[wix-users] How to run CA only on Uninstall

MANO MANO mano.n.s75 at gmail.com
Thu Dec 17 03:08:03 PST 2015


conditioning REMOVE="ALL" will make the CA to run only during uninstall.

On Tue, Dec 15, 2015 at 1:01 PM, Mark Vulfson <markvu at gmail.com> wrote:

> 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/
>



-- 
*regards,*
*Mano*


More information about the wix-users mailing list