
davetu1.552491757202207E12 asked a question.
How to prevent a feature from being installed?
Our Basic MSI has a feature that we do not want installed if the OS is a Windows Server (MsiNTProductType<>1). Setting a condition on a feature to raise the install level only deselects the feature on the CustomSetup dialog. This does not stop the user from selecting the feature or from installing the feature from the command line during a silent install.
Any suggestions?
MsiSetFeatureState(ISMSI_HANDLE,"YourFeatureName",INSTALLSTATE_ABSENT);
call this before feature migrate state
It works with /qn option also.