Re: Packages that launch applications
Re: Packages that launch applications
- Subject: Re: Packages that launch applications
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 13 Mar 2004 15:11:13 +0100
samedi 13 mars 2004, ` 05:23 AM, Dan Posluns a icrit :
Hi all,
I'm trying to make the Installer run a little configuration app with a
GUI that I've cooked up in Cocoa, but I've had no luck.
I've tried renaming the app to "postflight" (without the .app
extension) and including it as a resource for the package, but it
wouldn't work. I tried writing a shell script that launches the
application (by going into the app's directory and calling the
executable in the MacOS folder), which works when I try it from the
CLI but not when Installer runs the script, for some reason.
Does anyone have any suggestions? I really need to be able to prompt
the user for some initial configuration settings, and it has to be at
the install point.
(A) Ok, after experiencing some issues while doing my test (see part
B), I'm able to make it work as it should:
#!/bin/sh
open $1/Contents/Resources/TextEdit.app
exit 0
This is the code I'm using in a preflight script. And I have copied
TextEdit.app in the Resources folder of the package.
(B) The problem I was seeing on my side was a crash during the
installation of autoexec when launching the preflight script on Mac OS
X 10.2.8 and an error returned by Installer.app on Mac OS X 10.3.2.
This was due to the fact that I was using Macintosh line endings for
the script (thanks to BBEdit lite default settings) instead of Unix
line endings.
So from (A), you should have the correct path to your Cocoa app and
from part (B) the tip of the day.
Hope it helps.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.