On Jun 11, 2005, at 1:20 AM, Lorenzo Puleo wrote:
I am implementing my "Software Update" in my application.
So when there is a new version on my web site, the user can upgrade in a
while. I already done the download task. My dmg file is downloaded to a
given folder. And now?
Should I launch something to mount the disk then replace the old application
with the new one? While the old version is running? How?
I have many doubts. Firs of all, should I download a dmg file or a
uncompressed application file or a sit or a sitx file?
I recommend a zip, Mac OS X has built in support and many users don't understand the concept of disk images. Plus typically zips are smaller than disk images (this is my personal observation, YMMV).
Personally I would much rather deal with a zip that I can unzip and use rather than a disk image that I have to mount, copy, unmount and then use. Maybe there's good reason to use disk images - I've never found one though.
My main purpose is this: the user says "yes I want the update" so my
application download the new version, quits and when the user relaunch it,
he gets the new version. Do you know please which path should I follow?
Thanks.
I'm working on this in my app. Currently I have it setup to check a xml file on my server for the newest version, if a newer one is available then it downloads it to a temp folder (~/Library/Application Support/My App). It then launches my Updater app and quits. My updater app waits until my app has finished quitting then replaces it with the new version. It then asks the user if they wish to launch the new version.
Maybe not the best way, but I think it works well.