I have made the FeatureAction.vbs like this:
' Set constants for the INSTALLSTATE_ABSENT and INSTALLSTATE_LOCAL feature states
Const msiInstallStateAbsent = 2
Const msiInstallStateLocal = 3
' Initialize the install states of the mutually exclusive features
' and set their states based on the radio button selection
Session.FeatureRequestState("PopMusic") = msiInstallStateAbsent
Session.FeatureRequestState("RockMusic") = msiInstallStateAbsent
Session.FeatureRequestState("DanceMusic") = msiInstallStateAbsent
If Session.Property("RADIO") = "RadioPopMusic" Then
Session.FeatureRequestState("RadioPopMusic") = msiInstallStateLocal
ElseIf Session.Property("RADIO") = "RadioRockMusic" Then
Session.FeatureRequestState("RadioRockMusic") = msiInstallStateLocal
ElseIf Session.Property("RADIO") = "RadioDanceMusic" Then
Session.FeatureRequestState("RadioTranceMusic") = msiInstallStateLocal
End If
It will give this error: Object required 'Session' code 800z0108 if i try to open FeatureAction.vbs on my pc.
I am using windows 7 Ultimate (x86).
Edit:
I am having another problem only with checkboxes. The problem is i have more features to install at once but some combinations are not allowed because they would overwrite each other. So i have to set that if a feature is installed some other features cant be installed and some features can.
Hope someone can help.
FOLLOW US
Get the latest news in Application Packaging