Re: Create Alias w Leopard PackageMaker
Re: Create Alias w Leopard PackageMaker
- Subject: Re: Create Alias w Leopard PackageMaker
- From: Don Montalvo <email@hidden>
- Date: Sat, 23 Feb 2008 18:37:17 -0400
It should be named exactly "postflight" (or "preflight", etc.) and it
has to be plain text and executable.
Don
Jim Hoyt <email@hidden> wrote:
First, thank you for taking your time to help me. Very kind of you.
I put the code you sent (below) in a file named MakeLink.rtf and put a
reference to that file in the PostFlight Script field in the Package
screen.
PackageMaker builds the installer successfully, so it is reading the
script file, but Installer fails when it tries to run the script.
I am assuming I don't need to change anything in the script you sent
me.
The folder and file names are correct in this script. I am guessing
that the $3 gets the hard drive name (or root), and the $user is the
current user.
I must still be leaving something out.
Any more thoughts?
On Feb 23, 2008, at 3:25 AM, Stéphane Sudre wrote:
On Feb 22, 2008, at 9:18 PM, Jim Hoyt wrote:
Thanks, but I only got more confused. I am not an XCode developer,
just a lowly Filemaker Developer.
Using Terminal I found that using this command:
ln -s /Applications/Compass_4.0.13/Compass.app ~/Desktop/
Start_Compass
does exactly what I want.
Problem is, I don't know how to make that happen as a script called
by the installer.
Any thoughts?
. It's not an alias but a symbolic link. Symbolic links are cheap
aliases.
. If you want to go this way, you would need to add a postflight
script that would look like this:
#!/bin/sh
/bin/ln -s $3/Applications/Compass_4.0.13/Compass.app $USER/Desktop/
Start_Compass
exit 0
_______________________________________________
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