upgrade/clean install (was Re: CFBundleID)
upgrade/clean install (was Re: CFBundleID)
- Subject: upgrade/clean install (was Re: CFBundleID)
- From: Bill Coderre <email@hidden>
- Date: Mon, 22 Dec 2008 14:29:32 -0800
On Dec 22, 2008, at 1:58 PM, Everette Clemmer wrote:
Does anyone have a good idea of how the information presented in http://lists.apple.com/archives/Installer-dev/2005/Oct/msg00003.html
works? I’ve been testing some different ideas I’ve had about
editing the receipt CFBundleID property in the Info.plist file to
see if I can force an upgrade/clean install, and it seems like
changes made to the receipt outside of the installation process
either have no effect whatsoever or they bork something enough that
it causes a clean install in all cases. I’ve found the Hints.plist
method (hack?) to be the most effective at preserving an installed
app, but I don’t know how sustainable that approach is given that
there appears to be very little information on it and nothing
official that I’ve seen in the PM or Installer.app documentation.
First of all, it is reasonable to expect that installers will stay
binary-compatible for the foreseeable future. So the (undocumented)
"hints" stuff will probably work for a long time, if you do use it.
HOWEVER, when I do installers for Apple, I try not to rely on hints.
Instead,
• I pick CFBundleIDs that match package name (com.apple.pkg.iChat goes
with iChat.pkg),
• I pick descriptive package names for "full" installers, (iChat.pkg
installs iChat)
• I add a version, if the package is an "incremental" upgrade package
(iChat51.pkg upgrades iChat to version 5.1)
In this way, I have never run into problems yet. If there are files
that are obsolete, I make a list of them and then delete them during
preflight.
There are times when I have to use hints -- for example, to avoid
deleting a font that's no longer being shipped.
(And no, I am not announcing an iChat update.)
_______________________________________________
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
References: | |
| >CFBundleID (From: Everette Clemmer <email@hidden>) |