If a product uninstall is happening because of a major upgrade, I believe the 
property 
UPGRADINGPRODUCTCODE is set.  You could use this to condition your custom 
action.

Rob

Simon Detheridge wrote:
> Hi,
> 
> I have a wix-based installer in which I want to do a major upgrade.
> 
> I have an old version of the product that has a custom action that  
> fires during uninstall, unless a property is specified. i.e. If I just  
> uninstall my application, the action fires, but if I 'msiexec  
> /X'{MYGUID-...} DONTDOACTION=1' then it doesn't.
> 
> I'd like it to *not* fire the action, if I'm uninstalling it as part  
> of the major upgrade.
> 
> I guess I could make a custom action that called msiexec with the  
> relevant parameter, but I would prefer to have this taken care of by  
> the normal upgrade mechanism if at all possible, for obvious reasons.
> 
> Is there a way I can get the uninstaller to know about a property?  
> I've tried setting DONTDOACTION=1 in my installer, but it doesn't  
> propagate as far as the uninstall script. I've noticed in the  
> install.log there's a "Command Line" listed when it boots the  
> uninstall script, but I can't figure out how to get the property in  
> there.
> 
> Is there a way to do what I want to do?
> 
> Thanks,
> Simon
> 
> 
> 
> CONFIDENTIALITY NOTICE:
> This email and any attachments are for the exclusive and confidential use of 
> the intended recipient.  If you are not the intended recipient, please do not 
> read, distribute or take action in reliance upon this message. If you have 
> received this in error, please notify us immediately by return email and 
> promptly delete this message and its attachments from your computer system.
> 
> Logotron is a limited company registered in England, number 04113866. The 
> registered office is Logotron Ltd, 124 Cambridge Science Park, Milton Road, 
> Cambridge, CB4 0ZS.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to