/build/static/layout/Breadcrumb_cap_w.png

How to run a custom action only during Uninstall?

Hi,
I need to run a custom action only during uninstall? Can anyone pls tell me the sequencing steps to perform the custom action?

0 Comments   [ + ] Show comments

Answers (8)

Posted by: captain_planet 15 years ago
Black Belt
1
"condition your CA with Installed " - this is incorrect as it will run on repair too. AngelD's condition is better suited. And as to where the custom action is sequenced largely depends on what the custom action actually does.....
Posted by: AngelD 15 years ago
Red Belt
0
Set a condition to the custom action (Ex. REMOVE~="ALL")
Posted by: cygan 15 years ago
Fifth Degree Brown Belt
0
and sequence your CA after installvalidate
Posted by: cygan 15 years ago
Fifth Degree Brown Belt
0
sorry did not read through correctly

what you want to do is

condition your CA with Installed (note this is case sensitive)
sequence after costfinalize
Posted by: cygan 15 years ago
Fifth Degree Brown Belt
0
ORIGINAL: captain_planet

"condition your CA with   Installed " - this is incorrect as it will run on repair too.  AngelD's condition is better suited.  And as to where the custom action is sequenced largely depends on what the custom action actually does.....


What condition to use for my custom action to run only during uninstall?

remove=all

How do I make a custom action only occur during uninstall?

the answer that I gave using the CA

as you can see we are all prone to human error

if your CA depends on remove=all then I guess it must be sequenced after installvalidate
Posted by: Scazy 15 years ago
Senior Yellow Belt
0
Hi, use the following condition
&your_feature_name=2
if you want that it works during repairing as well then
NOT &your_feature_name=2
Posted by: jinxngoblins 15 years ago
Senior Yellow Belt
0
You can try with.... REMOVE~="ALL" OR MaintenanceMode="Remove".
They will run when being uninstalled from commandline or ARP
Posted by: captain_planet 15 years ago
Black Belt
0
"What condition to use for my custom action to run only during uninstall?

remove=all"
Cygan - I realise we all make mistakes, i do too! But you should use the tilda (~) in this condition because it does a non-case-sensitive text comparison which I believe is more reliable. Also, it's highly important that the word 'remove' is in upper case ('REMOVE')

"if you want that it works during repairing as well then
NOT &your_feature_name=2" - This is incorrect, too. I think what you're essentially saying here is 'run me any time except for uninstall' (For eg, on install too!).
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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