Re: Creating aliases for all users?
Re: Creating aliases for all users?
- Subject: Re: Creating aliases for all users?
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 4 Aug 2005 01:10:41 +0200
On mercredi, août 3, 2005, at 10:10 PM, David A. Pegram wrote:
Yes I'm using AppleScript. We originally started out using a Perl
script. However, the Perl script would not remove previous installs
from "/Users/Shared" or "/Applications" despite the fact that it
supposedly ran without error (looking at the install logs). When I
would run the Perl script from the command line it would complain
about insufficient permissions.
The Applescript will at least reliably remove the old installs.
Maybe we didn't do something correct in the Perl script?
If Applescript doesn't deal with the permissions properly, what else
would you recommend using?
You shall find a Cocoa ProjectBuilder project (can be opened by Xcode)
of a tool which is removing an old alias/file and creating a new alias
of an application for every user.
You will probably need to change the name of the alias file and the
application file. You may also want to have a different name for the
old and new alias.
I have tested it with the Calculator.app application on my machine with
2 local accounts but since it's using the DirectoryServices API, it
shall work in more complex cases.
http://s.sudre.free.fr/files/removeAndCreateAlias.tar.gz
Once compiled and tested, you can call this tool from the postflight or
preflight script.
Hope it helps.
_______________________________________________
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