Hi all,

I have a custom action that needs to run on removal from the UI (Maintenance Type = Remove) or from Add Remove Programs, but not during removal during a Major Upgrade. I just want to be sure I'm going to condition this properly

I'm going to include in the condition the ActionProperty, here UPGRADEPROPERTY, from the upgrade table...

Would it be something like...

REMOVE="ALL" AND NOT UPGRADEPROPERTY ?
Answer Summary:
You have to use REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3

Use

REMOVE~="ALL" AND NOT PATCH

The Upgrade property is always of the upgrading MSI and not of the MSI which is being upgraded.

PATCH is used while Upgrading the application.

Answered 07/02/2012 by: piyushnasa
Red Belt

Please log in to comment

Answers

0

An application determines whether it is being removed by an upgrade or the Add or Remove Programs by checking UPGRADINGPRODUCTCODE.

Answered 07/02/2012 by: jagadeish
Red Belt

  • REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
Please log in to comment
0

UPGRADINGPRODUCTCODE works perfectly!  THANK YOU!!

Answered 07/04/2012 by: Superfreak3
Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity