/build/static/layout/Breadcrumb_cap_w.png

Remove Custom Action Not To Run During Major Upgrade

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 ?

0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
You have to use REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
Posted by: piyushnasa 11 years ago
Red Belt
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.

Posted by: jagadeish 11 years ago
Red Belt
0

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


Comments:
  • REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE - jagadeish 11 years ago
Posted by: Superfreak3 11 years ago
2nd Degree Black Belt
0

UPGRADINGPRODUCTCODE works perfectly!  THANK YOU!!

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ