site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=wmy8jAuJtVABZivEZeoMiEegZpD22r6QFIK2goY4lgk=; b=vUwqwhIW835buvLzPkIUElc2a8pMrgZ4EeiKyNd4HGW7OaMeBSlYEqn4QyhAMSHhFd bzYns6abbKKouzBemCrgfJskJNZpqmAK31qPz5gXdWYMjUOzWRCKvfmWKHpJYTBodPju nR+Guhw3NPBeP/b1Sq3HjUd9dvCxOskA/sRT4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=DXw4Xp3IJqwT7G2aYHtQ47VgIRindrJVY0QduArXVgWT0Wd9yxf5VBO4VnaSJ/Z8+E 1f+UQLwvrw1AP0qaxPDaRjOyPEH0Xz/ijhEN/l0rqdkzOrlM1Xx3SvXSCI0eFUbdy5R/ QllB0HU8EoT4IrPk56oqQqJNArD+MMCHSl9Z8= On Feb 22, 2010, at 4:56 PM, sakshi wrote: 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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 */ } } This email sent to site_archiver@lists.apple.com