Hi,
I'm afraid that this cannot be done because you cannot update the value of the property which will determine if the button is disabled or enabled.
However, you can set the "Next" button to display a message and deny access to the next dialog if all the features are not marked for installation. For this you can use an Attached custom action which looks like this:
Code: Select all
Const msiInstallStateLocal = 3
Const msiInstallStateSource = 4
If Session.FeatureRequestState("Feature_01") = msiInstallStateLocal Or Session.FeatureRequestState("Feature_01") = msiInstallStateSource Then
Session.Property("ENABLED")="True"
Else
Session.Property("ENABLED")="False"
MsgBox("The feature must be installed")
End If
This custom action is set as a "DoAction" Published control event for the "Next" button. If the feature with the "Identifier" field ("Organization" page) set to "Feature_01" is not marked for installation then the message box will be displayed and you will not be able to go to the next dialog.
You can modify this custom action for your features. For more information about custom actions you can see this page:
http://www.advancedinstaller.com/user-g ... -page.html
Also, you can read more about control events here:
http://www.advancedinstaller.com/user-g ... ditor.html
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging