hi all,

can someone tell me what is the property, when creating a custom action, to insure that this CA will be executed on a repair?

so far i have tried the following without success;

Installed OR (NOT REMOVE)
NOT REMOVE
(NOT REMOVE) OR REINSTALL

thanks!
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
You almost got it!

If you try searching for "repair custom action condition" on this very board that should get you even closer ;)

The correct term is "condition", not "property" .. might be what put you off track.
Answered 08/08/2007 by: deploy.no
Orange Belt

Please log in to comment
0
Try a condition as: Installed And NOT REMOVE~="ALL"
Answered 08/08/2007 by: AngelD
Red Belt

Please log in to comment
0
maybe slightly off topic but I figured I would throw it in anyway.

you can also use session.mode to obtain the current installation context.
Answered 08/08/2007 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
2
If REINSTALL then...
Only runs the CA if a repair is called - i.e. it won't run on install or uninstall
Regards,
Al
Answered 08/10/2007 by: AB
Purple Belt

Please log in to comment
0
From my experience both AngelD and ABs conditions will work.

However, I seem to remember that there was a reason that the first suggestion is the best one. I don't exactly remember why, though. Is the REINSTALL property also available when a repair runs in regular user context - not elevated?

Anyone know?
Answered 08/11/2007 by: deploy.no
Orange Belt

Please log in to comment
0
If the product is repaired or a patch is installed or uninstalled the REINSTALL property will be set.
To ensure that the Custom Action will only be executed during repair you would need to use REINSTALL AND NOT PATCH, so in this case the custom action will only be executed during a repair and not when a patch is installed nor uninstalled.
Answered 08/11/2007 by: AngelD
Red Belt

Please log in to comment
0
Thanks AngelD, this is one for my collection o' posts :->
Answered 08/14/2007 by: deploy.no
Orange Belt

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