Re: Installer framework or .pkg format?
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.