I did that.
I need to change two states. But it seems that my VBS ist not working.
I works if just change ONE state.
Also if I remove the "And" between the two states, I get an error.
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("video_mt_pal") = msiInstallStateAbsent
Session.FeatureRequestState("video_mw_pal") = msiInstallStateAbsent
Session.FeatureRequestState("video_mt_ntsc") = msiInstallStateAbsent
Session.FeatureRequestState("video_mw_ntsc") = msiInstallStateAbsent
Session.FeatureRequestState("videomain") = msiInstallStateAbsent
If Session.Property("ProductLanguage") = "2057" And Session.Property("sig_Selection") = "MT32" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "2057" And Session.Property("sig_Selection") = "MT33" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "2057" And Session.Property("sig_Selection") = "MT34" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mw_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1031" And Session.Property("sig_Selection") = "MT32" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1031" And Session.Property("sig_Selection") = "MT33" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1031" And Session.Property("sig_Selection") = "MT34" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mw_pal") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1033" And Session.Property("sig_Selection") = "MT32" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_ntsc") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1033" And Session.Property("sig_Selection") = "MT33" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mt_ntsc") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
ElseIf Session.Property("ProductLanguage") = "1033" And Session.Property("sig_Selection") = "MT34" And Session.Property("vidm_Selection") = "VidSigNo" Then
Session.FeatureRequestState("video_mw_ntsc") = msiInstallStateLocal And Session.FeatureRequestState("videomain") = msiInstallStateLocal
End If