Re: Installing to users Home folder using Packages
Re: Installing to users Home folder using Packages
- Subject: Re: Installing to users Home folder using Packages
- From: Conor Schutzman <email@hidden>
- Date: Wed, 04 Sep 2013 08:39:01 -0700
I have to agree with Greg here. Try to avoid installing via package inside home. Not only is there all of the multiple user issues involved, but it mucks with repair privileges, and just has a lot of potential for headaches down the road (if you end up needing to script removal later on, now you have to muck with users home folders, etc.).
If you do end up having to do this, be sure to disable "require authentication", as packages advises, otherwise the scripts will still be executing as root, even when installing into a user's home, and all kinds of permission issues ensue. But, once you disable that option, then putting "$3/Users/$USER/" in every path should become habit.
I also might offer a better solution... Instead of installing to a home folder, maybe install somewhere as a place holder (not /private/tmp) then using a LaunchAgent to copy the files into each user's home folder as they log in.
On Sep 4, 2013, at 7:21 AM, Greg Neagle <email@hidden> wrote:
> Why do you need to do this?
>
> I would not want to use/support your software in an enterprise environment where:
>
> 1) There may be multiple user accounts on a machine
> 2) User accounts might come from a directory service and therefore have no "footprint" on a machine when your software is installed.
> 3) The user installing your software might be a site administrator, and not the user who will be using your software.
> 4) The software might be installed by an automated process and there might be no user logged in at all at the time of install.
> 5) A machine might be set up and configured _before_ the main user's account is created; the main user's account may not even exist at the time of the installation of your software.
>
> Software should not _require_ the installation of anything in a user's home directory.
>
> -Greg
>
> On Sep 4, 2013, at 3:32 AM, James Pritchard <email@hidden> wrote:
>
>> Up until now we've been using PackageMaker to put together our installs but looking to make a change to use Packages for our next software release.
>>
>> An issue we had using PackageMaker was with installing to the users Home folder. Our solution was to install to the /tmp folder and then copy the files across in a post flight script. Can anyone tell me if there a way of installing to the Home folder in Packages, or should I just carry on using my existing post flight script.
>>
>> Thanks,
>> James
>> _______________________________________________
>> 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
_______________________________________________
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