Package versions, upgrade, downgrade (somebody from Apple please help before I go mad)
Package versions, upgrade, downgrade (somebody from Apple please help before I go mad)
- Subject: Package versions, upgrade, downgrade (somebody from Apple please help before I go mad)
- From: Jon Hodgson <email@hidden>
- Date: Tue, 6 Jul 2010 19:08:30 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden