• 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: Installer framework or .pkg format?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installer framework or .pkg format?


  • Subject: Re: Installer framework or .pkg format?
  • From: Ryan McGann <email@hidden>
  • Date: Mon, 16 Feb 2004 19:43:01 -0800

i would like to build a software update program that people can
download and use to update my existing software on their system i would
like it to act like software update and download a stuffed pkg and then
install, my question is, is there a framework i can hook into or format
specs for a .pkg file? or even better an example? i know pacifist does
it, so it can be done..
The Installer framework is private and not supported by Apple. You can reverse-engineer it but if Apple changes it (as they most likely will) your code will break. And if your software update mechanism breaks, that would be bad.

On Mac OS X 10.2 and later you can use the installer command line tool (man installer). It does everything the installer does. If you can't require 10.2, then you can run the pax command yourself to do the installation; that's basically what the installer does (but with a lot of extras).

PS: Make sure the update packages you download and install do _not_ have the same name as the package the user installed when they bought your application. Otherwise, the installer will delete everything _except_ the data in the update package. So if your installer installs a package called Foo.pkg, make sure the update is called Foo1.1.pkg.

Ryan
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Installer framework or .pkg format?
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Adding a group to AB
  • Next by Date: Re: NSRunAlertPanel-not working?
  • Previous by thread: Installer framework or .pkg format?
  • Next by thread: Re: Installer framework or .pkg format?
  • Index(es):
    • Date
    • Thread