Re: Application upgrades itself?
Re: Application upgrades itself?
- Subject: Re: Application upgrades itself?
- From: Chris Suter <email@hidden>
- Date: Mon, 24 Jul 2006 12:16:18 +1000
On 24/07/2006, at 11:45 AM, Bobby B wrote:
Hello list!
I've encountered a bit of a logic problem. I want to put an option in
my .app to make it upgradeable (ie, they have a new copy of my app
downloaded, and the app will make it easy for them to copy it over and
restart itself -- this sounds stupid, but in the context of this app
its almost a necessity)
All the file handling is simple, but I don't understand *how* this can
work. I would have to copy over the .app that is currently loaded.
May anyone offer a suggestion? This should be pretty simple, but I
can't seem to figure out this bit of it.
Thank you
BB
We do it in our applications.
We just install the new version in a temporary directory and then
when we're ready, rename the existing path to somewhere in the temp
directory, rename the new version to the appropriate name and then
delete the old one that we renamed earlier.
We then call [NSApp terminate:] and as we're terminating we start a
task to relaunch the new version.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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