• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pre-install
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pre-install


  • Subject: Re: pre-install
  • From: Bill Coderre <email@hidden>
  • Date: Tue, 12 Sep 2006 11:49:41 -0700

On Sep 12, 2006, at 9:41 AM, Eric Blanpied wrote:
I'm updating a packagemaker installer that previously installed a set of three PPC QuickTime components to install the Universal version of the same software. The catch is that the new QT component is just one file, and the two that don't get replaced appear to be incompatible with the new code.

So I need to look for the old components and delete them before installing. Can someone point me at an example along these lines?

If you use the same package name (in Panther and older) or if you use the same CFBundleIdentifier (in Tiger and later), files that are in the receipt of the old package but not in the new package are removed.


The installer calls this "upgrade mode."

If you'd rather not rely on receipts being there, it's quite OK to delete files and folders during an executable that runs before installation or after installation. Apple frequently uses those kinds of scripts to clean up.

Be very careful what you delete! These scripts are usually running as ROOT, so if the worst comes to worst, you might end up doing "rm - rf / My Volume Name/"

The specifics of which executables are run when are documented in the "Software Delivery Guide":

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ SoftwareDistribution/index.html

_______________________________________________
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: 
 >pre-install (From: Eric Blanpied <email@hidden>)

  • Prev by Date: pre-install
  • Next by Date: Re: Installer doesn't use the Info.plist from packagemaker
  • Previous by thread: pre-install
  • Next by thread: Creating packages that can handle software updates with Packagemaker ?
  • Index(es):
    • Date
    • Thread