I don't think this is possible. FeatureStates aren't evaluated until Costing, and by that point the component list is set.
You need to do it in a custom action; either installscript, vbscript, MSI Dll, etc. and use the feature states you care about as a condition on the custom action.