I'm trying to use the following VB script in an inline script custom action:
Code: Select all
If Session.FeatureRequestState("Feature_Server") = 3 Then Session.Property("F_SERVER") = "1"I also tried Javascript syntax.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.
What I'm trying to do is set 3 parameters, one for each selected feature. Something like:
Code: Select all
if (Session.FeatureRequestState("Feature_Server") == msiInstallStateLocal) Session.Property("F_SERVER") = "1";
if (Session.FeatureRequestState("Feature_Distribution") == msiInstallStateLocal) Session.Property("F_DISTRIBUTION") = "1";
if (Session.FeatureRequestState("Feature_EmailGateway") == msiInstallStateLocal) Session.Property("F_EMAIL_GATEWAY") = "1";
Thanks
FOLLOW US
Get the latest news in Application Packaging