Loading
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?

  • Create an install script custom action; code is below;

     

    MsiSetFeatureState(ISMSI_HANDLE,"YourFeatureName",INSTALLSTATE_ABSENT);

     

    call this before feature migrate state

     

    It works with /qn option also.
    Expand Post

Loading
How to prevent a feature from being installed?