Re: Create Alias w Leopard PackageMaker
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Don Jim Hoyt <jimhoyt1@mac.com> 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. 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. . 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 _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... It should be named exactly "postflight" (or "preflight", etc.) and it has to be plain text and executable. I am assuming I don't need to change anything in the script you sent me. Any thoughts? exit 0 This email sent to site_archiver@lists.apple.com
participants (1)
-
Don Montalvo