• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: creating alias during installation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating alias during installation


  • Subject: Re: creating alias during installation
  • From: Stéphane Sudre <email@hidden>
  • Date: Fri, 9 Feb 2007 22:13:05 +0100


On jeudi, février 8, 2007, at 10:42 AM, Bill Coderre wrote:

[...]
After all that, I forgot to tell you how to make an alias.

Don't make an alias. Make a symlink instead. The end user will not see a difference between the two, and the symlink is MUCH simpler to make. (I see Stephane disagrees.... Well...)

This basically boils down to a simple idea:
ln -s /path/to/MyApp.app ~/Desktop/Myapp.app
[...]

Hmm, I don't disagree, it's just that an Alias is more robust than a symlink. I do agree that it was much simpler to make a symlink.


But it might not be too complex to make an alias with the tool I've just uploaded (source code + Xcode 2.4 project) at:

http://s.sudre.free.fr/Software/HelperTools/bristow.zip (BSD License + the NDAlias License)

usage: bristow [-a][-u] <file or directory> alias
-a -- Install an alias in all users home folder. alias will be
read as a relative path.
-u -- Install an alias in the currently logged in user home folder. alias will be read as a relative path.



Note: -----

It's using the SystemConfiguration framework to know the current logged in user and if the answer is "loginwindow" it does nothing. It's probably not working when using installer through a remote user session (such as ssh).

It's using OpenDirectory to list all the "real" users (real means uid >=500, yes this can be wrong in some restricted cases such as setting a uid to less than 500 so that it does not appear in the Login window in list mode).


_______________________________________________ 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
References: 
 >Re: creating alias during installation (From: Bill Coderre <email@hidden>)

  • Prev by Date: Re: creating alias during installation
  • Next by Date: Two questions related to a mystery
  • Previous by thread: Re: creating alias during installation
  • Next by thread: Re: creating alias during installation
  • Index(es):
    • Date
    • Thread