I am trying to install one from two features based on the value that should be set inside of the custom action.
Firstly, I set the value of a property:
Concerning the correct order of the custom actions, the description of the custom action type 51 contains the decisive hint:
"To affect a property used in a condition on a component or feature, the custom action must come before the CostFinalize action in the action sequence."