Re: Updates from Download
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