Hi Carl,
This can be done only in an Enterprise project by using these steps:
- go to the
Custom Actions page and create a new "ScriptInline" custom action under "UI Custom Actions"
- select the custom action and in the
Custom Action Properties page set the "Script text" field to:
Code: Select all
MsgBox "Incorrect feature configuration"
- you can change the text shown by the message box to what you want to show to the user
- go to the
Dialogs page and add the "SetupTypeDlg" dialog
- click the plus sign ('+") next to "SetupTypeDlg" to show the dialogs which come after it
- select the "Next" button on the "CustomizeDlg" dialog
- add this control event:
Code: Select all
DoAction ScriptInline 1 AND &MainFeature=3
- modify the "NewDialog" control event to look like this:
Code: Select all
NewDialog VerifyReadyDlg ((NOT Installed) OR (InstallMode = "Change")) AND &MainFeature<>3
Basically, you will show a custom message to the user (the DoAction control event) and stay on the same dialog (the NewDialog control event) if the feature "MainFeature" is marked for installation (&MainFeature=3). You can adapt this example to the feature combinations you need.
Regards,
Cosmin