Re: How to quit running app before installer replaces it?
Re: How to quit running app before installer replaces it?
- Subject: Re: How to quit running app before installer replaces it?
- From: Stephane Sudre <email@hidden>
- Date: Tue, 19 Feb 2013 15:53:34 -0800
On Tue, Feb 19, 2013 at 9:16 AM, Sean McBride <email@hidden> wrote:
> Hi all,
>
> Just joined this list, please be gentle... :)
>
> We recently got a customer crash report that we figured out was due to version x of our app being run while the user ran the installer to install version y. Since the process was still running, it eventually tried to open one of its nib files (which changed from x to y) and crashed due to the mismatch.
>
> So: how can/should I check if my app is already running, and warn the user before installing?
>
> I've found this asked in the archives:
> <http://lists.apple.com/archives/installer-dev/2008/Nov/msg00054.html>
> <http://lists.apple.com/archives/installer-dev/2006/Jan/msg00036.html>
>
> But they are years old... what is current best practice?
One of the possible best practices is probably to use the 'must-close'
options of a distribution script.
https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
Caveat: it's not supported by all OS versions that support
distributions. I haven't checked which versions are supported yet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden