Using Advertised Shortcuts with selfhealing works fine, but I like to have more control of the repair by executing e.g. a VBscript or Executable.

Is it remotely possible to execute a Custom Action when a feature repair is triggered?

P.s. I googled the last couple of days but couldn't find any hands-on explanation how to do it. Only a lot people trying to do the same.
0 Comments   [ + ] Show 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.


I think what you want is FeatureRequestState which you can find in the msi.chm or online
Answered 04/06/2010 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
I do accept with aogilmor, Below are the some info this helps you.

action state of feature

installed state of feature
The last four can return the following integer values:

no action to be taken

advertised (only for features)

not present

on the local computer

run from the source
A few examples to make things clearer:

(&FeatureName = 3) AND NOT (!FeatureName = 3)
Run action only if the product will be installed locally. Do not run action on a reinstallation.
The term &FeatureName = 3 means the action is to install the feature locally.
The term NOT (!FeatureName = 3) means the feature is not installed locally.
(&FeatureName = 2) AND (!FeatureName = 3)
Run action only if the feature will be uninstalled.
This condition only checks for a transition of the feature from an installed state of local to the absent state.

Answered 04/07/2010 by: joseph
Orange Belt

Please log in to comment
Hi JeamBoy

I am not sure if this is the answer you are looking for but in order to execute a custom action during repair is include the condition "Installed and NOT REMOVE" on the custom action in order to run it during repair. of "NOT REMOVE" for both install and repair.. hope this helps[:)]
Answered 04/07/2010 by: thugz888
Senior Yellow Belt

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