Re: user home directory?
Re: user home directory?
- Subject: Re: user home directory?
- From: danchik <email@hidden>
- Date: Wed, 12 Oct 2011 15:18:46 -0700
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" <email@hidden>
To: "Roy Nielsen" <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, October 12, 2011 1:47 PM
Subject: Re: user home directory?
12 okt 2011 kl. 22:36 skrev Roy Nielsen:
I want my installer to run with admin privileges, but install a file on
the user's desktop that is running the install…
The user may be dynamic (not always the same user)
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.
--
Per Olofsson
System Administrator, ITS, University of Gothenburg
_______________________________________________
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
_______________________________________________
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