Package versions, upgrade, downgrade (somebody from Apple please help before I go mad)
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Al9BmBsmECaSuSPkBLaLLH2T0Kaml8+Pp0bE+MaTy94=; b=KpNXW2dwexKmCU40tLaAWAOrtwvm29nblDtfMfZ0L8ZQlLhl8skDleHzjqfW4CkG/4 Gs8JdAA9sTYy6zAUhw7FyYz0zH8rSzCAr5zDfu0bQG/TOFbz7s4D73qPM2FfAyThV9Ls 9ZWl+dFoKIdf54Y92DonQcWAJLbQnEcyuohtk= Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V2Z6VO4sERn+ajBC04Dne03gnR5CGUliVkePsWwmNILi+/+aSMXX/f0iKQ65Bgd7tI vSGvv1JWJHBaXbc5OEWiJPRrFto5OFPXy+TFOGvzw73R/xDUacyaKRSZSAtcCC/9Xq/+ mMwdOWRkRou7ryOR/gOrj7+1xERkhav+wEu8M= I'm on Snow Leopard, I have a distribution package, and I've been trying to work out the whole versions thing. I'm not changing IFPackageVersion, just the bundle version So, one of the component has revert consent switched off... I build version 3.3 of my installer... install the component package (the one that goes into the distribution package), it works fine, as expected. If I run the distribution package, that component's entry in the custom list now says "upgrade" (odd, but acceptable), and packageUpgradeAction is "upgrade"... docs say it should be "installed" I now build version 1.1 of the installer. If I try to run the component package, it tells me there's already a newer version installed... great, exactly what I expect. I run the distribution package, it still says "upgrade", and the packageUpgradeAction is now still "upgrade"... definitely not what the docs say, that should be "downgrade" So I build version 0.0 Once again the component package refuses to install... good run the distribution package, it still says "upgrade", BUT NOW the packageUpgradeAction says "downgrade"... which is right, but we should have seen this in the previous case.... and... if I select that component, and click install, then it installs it, completely overriding the revert consent flag in the component. Finally, I run the distribution package again (so I've got 0.0 installed and it's the 0.0 installer)... now rather than being "installed" as it should be, or even "upgrade" as it was in the previous case where I ran an installer with the same version as the installed version (3.3, see above), the packageUpgradeAction is now "downgrade" What on earth is going on here? And if the installer isn't going to correctly inform the user about what the installer action will be (it's only an upgrade if you're going from an earlier version to a later one) can I at least get some reliable information within the distribution file javascript so I can set defaults and ideally descriptions accordingly? _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jon Hodgson