• 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: Wed, 22 Jun 2005 10:24:49 +0200

At 10:12 Uhr +0200 22.06.2005, Lorenzo wrote:
The problem now is how to replace the old and running application file with
the one just downloaded. If I expand the file xxx.sea to the final file
xxx.app and in the same directory there is the old file xxx.app, I get the
new file as xxx.1.app. Moreover, I cannot trash, rename or delete the
running old application file. Any idea?

This came up a while ago either here or on student-dev. The typical approach is to have a second "updater" executable installed in "Application Support". When your app needs to be updated, it launches the updater and quits itself. The updater waits until the app has quit, then replaces it with the new version, and then launches the new version.


Obviously, your updater app may need to authenticate to get write permissions e.g. if it's a non-admin user and the app is in /Applications.
--
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: 
 >Re: Updates from Download (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Updates from Download
  • Next by Date: Re: Design Dilemma ...
  • Previous by thread: Re: Updates from Download
  • Next by thread: Re: Updates from Download
  • Index(es):
    • Date
    • Thread