• 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: Updates from Download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updates from Download


  • Subject: Re: Updates from Download
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 11 Jun 2005 23:26:20 +0200

At 1:38 Uhr -0400 11.06.2005, Lee Morgan wrote:
I recommend a zip, Mac OS X has built in support and many users don't understand the concept of disk images.

While I generally agree with Lee, if you use hdiutil in an NSTask to mount the dmg somewhere, and then do the copying by yourself in the background and unmount the image again, the user will not notice. But I think hdiutil doesn't have all the features you may want until 10.2 (the non-data-fork-aware zip tool is available wherever the BSD subsystem is installed, and 10.3 and later come with BOMArchiveHelper to zip files)


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.

This is basically what Shovel's self-updating code does as well. Install a command-line app in Application Support, run it, quit yourself and the tool will replace the old copy with the new one, then re-launch it.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Updates from Download (From: Lorenzo Puleo <email@hidden>)
 >Re: Updates from Download (From: Lee Morgan <email@hidden>)

  • Prev by Date: Re: Killing a NSTimer
  • Next by Date: Re: Still can't figure out this overrelease bug
  • Previous by thread: Re: Updates from Download
  • Next by thread: Re: Updates from Download
  • Index(es):
    • Date
    • Thread