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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Set a condition to the custom action (Ex. REMOVE~="ALL")
Answered 11/06/2009 by: AngelD
Red Belt

Please log in to comment
0
and sequence your CA after installvalidate
Answered 11/06/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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
Answered 11/09/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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.....
Answered 11/09/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
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
Answered 11/09/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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
Answered 11/10/2009 by: Scazy
Senior Yellow Belt

Please log in to comment
0
You can try with.... REMOVE~="ALL" OR MaintenanceMode="Remove".
They will run when being uninstalled from commandline or ARP
Answered 11/10/2009 by: jinxngoblins
Senior Yellow Belt

Please log in to comment
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!).
Answered 11/10/2009 by: captain_planet
Second Degree Brown Belt

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