Re: add-on installers
Re: add-on installers
- Subject: Re: add-on installers
- From: Iceberg-Dev <email@hidden>
- Date: Mon, 22 Feb 2010 18:49:44 +0100
On Feb 22, 2010, at 4:56 PM, sakshi wrote:
Unfortunately I can't find much documentation on this feature so
I'll have to bother you again. Any idea what Min version and Max
version stand for?
I'd like to restrict installing the secondary application for a
given major version of the primary app. I was hoping that these
version fields would help but they don't seem to. In fact I don't
even see anything related get saved into Distribution.
These values are not taken into account if the target is Mac OS X
10.5 or later.
What you're trying to accomplish is technically possible but it would
require editing the PackageInfo manually.
<relocate search-id="com.mycompany.myApplication">
<bundle CFBundleIdentifier="com.mycompany.myApplication" path="./
Applications/myApplication.app"/>
</relocate>
<locator>
<search id="com.mycompany.myApplication.mybundle" type="component">
<bundle CFBundleIdentifier="com.mycompany.myApplication"/>
</search>
<search id="com.mycompany.myApplication" type="script" script="search
()">
<script>
function search()
{
var results = my.search.results
['com.mycompany.myApplication.bundle'];
if (typeof(results) == 'object')
{
if (results.length == 0)
{
return "/var/run/DoNotInstall"; /* This is the trick used by
Apple in some packages */
}
for (var i = 0; i < results.length; i++)
{
var result = results[i];
/* Here you retrieve the version of the bundle and compare it
with your value */
/* system.files.plistAtPath(result+'/Contents/Info.plist') */
/* If it matches, you can just return result */
}
}
return results;
}
</script>
</search>
</locator>
This is based on what is done in the Mac OS X 10.6.2 Update package.
_______________________________________________
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