Hi,
I'm trying to read, from an MSI, a "property" contained within an imported merge module.
If the property's value is 1, the installation should continue; if it's zero, the installation must stop.
The MSM is supplied by a third party, so I can't be flexible on this.
The method I'm currently trying, is to write an inline JavaScript script, but whenever I build and run the installer, I always get the error "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."
if (Session.Property("PROPERTY_NAME")== 1) return 0; else return 1;
if (PROPERTY_NAME == 1) return 0; else return 1;
if (Session.Property("PROPERTY_NAME.MERGE_MODULE_GUID")== 1) return 0; else return 1;
if (PROPERTY_NAME.MERGE_MODULE_GUID == 1) return 0; else return 1;
What's the correct syntax? I'm not a JavaScript developer, so I'm shooting in the dark a bit here.
Is it possible - by any means - to achieve what I need?
Thanks,
- Steve.
FOLLOW US
Get the latest news in Application Packaging