Re: Version control in Installer Packages
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=ge13YE3SbOLv9hXILvgP0YAWtKQOn127qsg/AupI0HU=; b=lrdBIkzvBB15bTYccbhcWhm6mn0HWK1weoxtpzBZ1iiWD89MsN4hkm3J3L8a7mQKi4 oRazMTph6Rr+bxzp74aeV34MWsjB88/2ILT5gKcLrpzRjjDbV78/itcYiQm/zT7v7Ipy mBjmx9PJiGgIM2sgn0QcbFBkg6w6UMZHtKXnY= 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=tLVEANmaMsH4fCRchEhiZtVAXr8enZ6Z3wwwcL9yn1hSYL0jBwWj8TLYE1eyMSnwhn H8qtmNYH44yfh4tzuoycT6zZGSKyHM3uU4SMglDMKfAQfjYRrYMLQeRvM5CROaXb9I8v SG0ZMGX967q4TFpaToHOoukf8VtUm65Os7V4o= On Sep 23, 2008, at 8:15 PM, Scott Amory wrote: On Sep 22, 2008, at 11:00 PM, Ulf Dunkel wrote: So we have set up the "Requirements" as follows: Required: required Pass if: true Description: Target OS Version: is greater than or equal to '10.4.5' This works fine when I test it on my Leopard machine (of course). if(!(my.target.systemVersion.ProductVersion >= '10.4.5')) { _______________________________________________ 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... Our iCalamus installer for CD shipment has been set up in a way that it should check the customer's Mac OS X version first. But now a customer complained that it didn't work on his Tiger machine with 10.4.11. How the heck are values compared in "Requirements"? I guess they are compared as strings (where "10.4.11" is lower than "10.4.5"). Can someone confirm this as a bug - or did we something wrong? Hi Ulf, I'm sorry to say that I think that this is a bug in PackageMaker. I set up a test as you described and looked at the distribution file that it created. The check that it sets up looks like this: On the surface that might look correct but it isn't. In a situation when comparing this to 10.4.10 or higher it's going to give the incorrect answer. To be correct it would have to look something like this: if(-1 == system.compareVersions (my.target.systemVersion.ProductVersion, '10.4.5')) { Called this way it should properly compare the versions. The return code of the compareVersions function is -1 for less than 0 for equal and 1 for greater than. In your situation I would suggest you manually change the distribution after creating it through PM. And please file a bug for this. Just for the record, this incorrect way of comparing versions is also used in PackageMaker on Mac OS X 10.4. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev