Hrm? NorthAmericaFiles and EuropeFiles are *Features*, not properties.
I did however change RegionSelect to be REGIONSELECT as I do need that to be a global property. And, just in case I misread (or you mistyped) I changed EuropeFiles to EUROPE_FILES and NorthAmericaFiles to NORTH_AMERICA_FILES. However, I'm still running into this issue.
I have modified my VBS script appropriately:
Code: Select all
' Set contants 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("EUROPE_FILES") = msiInstallStateAbsent
Session.FeatureRequestState("NORTH_AMERICA_FILES") = msiInstallStateAbsent
If Session.Property("REGIONSELECT") ="NorthAmerica" Then
Session.FeatureRequestState("NORTH_AMERICA_FILES") = msiInstallStateLocal
ElseIf Session.Property("REGIONSELECT") = "Europe" Then
Session.FeatureRequestState("EUROPE_FILES") = msiInstallStateLocal
End If
This is my log output from running this custom action:
Code: Select all
MSI (c) (10:28) [10:59:49:217]: Doing action: custom_action_features.vbs
Action 10:59:49: custom_action_features.vbs.
Action start 10:59:49: custom_action_features.vbs.
MSI (c) (10!28) [10:59:49:529]: Note: 1: 2727 2:
MSI (c) (10!28) [10:59:49:576]: Note: 1: 2727 2:
MSI (c) (10!28) [10:59:49:623]: Note: 1: 2727 2:
Action ended 10:59:49: custom_action_features.vbs. Return value 0.
However, despite the custom action defaulting both features to 'Absent' it tries to install them both (another excerpt from the log):
Property(S): ADDLOCAL = NORTH_AMERICA_FILES,MainFeature,EUROPE_FILES
Something doesn't seem right...
I have also tried to use the "Conditional install level" on the Features but I can't get that to correctly check REGIONSELECT either. These two methods are mutually exclusive, right? I shouldn't be trying to do both at the same time I presume...
Thanks for your help, I look forward to your response.
FOLLOW US
Get the latest news in Application Packaging