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: Beatrix Willius <email@hidden>
- Date: Tue, 19 Feb 2013 18:38:25 +0100
Hi Sean,
I'm a newbie myself in regard to installers. But I've had a similar issue like yours. You need to add a preflight script. Here is the script that I use
#!/bin/sh
thepid=`ps ux | awk '/Mail Archiver Scheduler/ && !/awk/ {print $2}'`
if [ $thepid ]; then kill $thepid; else echo 'no schedule set'; fi
This is a very simple script. However, for me it works.
You can't warn the user AFAIK.
On 19.02.2013, at 18:16, Sean McBride <email@hidden> wrote:
> 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>
Mit freundlichen Grüßen/Regards
Trixi Willius
http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
_______________________________________________
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