Re: Trying to Package FinalCutPro 10.0.6 with HW/SW check
Re: Trying to Package FinalCutPro 10.0.6 with HW/SW check
- Subject: Re: Trying to Package FinalCutPro 10.0.6 with HW/SW check
- From: Vikram Singh <email@hidden>
- Date: Wed, 07 Nov 2012 18:35:46 +0530
You should include an Installation check in your Distribution script. You can show your custom localized messages in case of failure. See the below example. I didn,t check the script for syntax errors but I think you will get the idea.
<installation-check script="pm_install_check();"/>
<script>
function pm_install_check()
{
var sysVersion = system.version.ProductVersion;
if ( !( (system.compareVersions(sysVersion, '10.6.8') == 0) || (system.compareVersions(sysVersion, '10.7.5') == 0) || (system.compareVersions(sysVersion, '10.8.2') == 0)) )
{
my.result.title = system.localizedString('ERROR_SYSTEM_VERSION_TITLE');
my.result.message = system.localizedString('ERROR_SYSTEM_VERSION_MSG');
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
Thanks,
Vikram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden