site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 12 okt 2011 kl. 22:36 skrev Roy Nielsen: The user may be dynamic (not always the same user) -- Per Olofsson System Administrator, ITS, University of Gothenburg _______________________________________________ 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/danchik%40rebelbase.com This email sent to danchik@rebelbase.com _______________________________________________ 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... I had similar issue with trying to determine the user that started the installer that has to install with admin priviliges. After user elevates it, the post script launched another program to do additional steps, but the program is not able to expand tildas in path to the correct user. How does one get the user (or user home path) that started the installer once the installer has been elevated outside of the installer itself? ----- Original Message ----- From: "Per Olofsson" <per.olofsson@gu.se> To: "Roy Nielsen" <rsn@LANL.GOV> Cc: <installer-dev@lists.apple.com> Sent: Wednesday, October 12, 2011 1:47 PM Subject: Re: user home directory? I want my installer to run with admin privileges, but install a file on the user's desktop that is running the install… I can't quite wrap my head around getting this to work. Any ideas? • If at all possible, don't - install it when the user launches your application instead. • There might not be a user running the install, and they might not have a desktop. • Users logging into the machine after your package has been installed will not get anything on their desktops. • If you despite this really want to install desktop items with your package, inspect the $USER variable in the post flight script. If it's not set, or belongs to a UID below 500, fail gracefully. This email sent to site_archiver@lists.apple.com
participants (1)
-
danchik