Re: add-on installers
Re: add-on installers
- Subject: Re: add-on installers
- From: sakshi <email@hidden>
- Date: Fri, 26 Feb 2010 20:04:19 +0530
I've run into an issue with a case where there is no "component" to install. Basically the files to install are all txt files and there is no bundle to get listed in the components pane (for me to relocate). Any ideas on how to approach this one?
Thanks,
Sakshi
On Tue, Feb 23, 2010 at 5:00 PM, sakshi
<email@hidden> wrote:
Seems to work (till now :). Thanks!
-SakshiOn Mon, Feb 22, 2010 at 11:19 PM, Iceberg-Dev
<email@hidden> wrote:
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
_______________________________________________
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