Re: Installing to user documents folder
Re: Installing to user documents folder
- Subject: Re: Installing to user documents folder
- From: Greg Neagle <email@hidden>
- Date: Fri, 20 Apr 2012 12:14:28 -0700
This has been discussed many times on this list before, but have you considered:
1) What happens if there are multiple users on the machine? Users other than the original installing user get a second-class experience?
1a) What if the user installing the software (a local admin, a parent, a spouse) is not the intended primary user of the software?
1b) What happens when additional users are added to the machine _after_ your software is installed?
2) What happens if the software is installed by a software deployment mechanism like Apple Remote Desktop, JAMF Casper, Absolute Manage, Munki, Puppet, or any other system that installs software automatically, usually as root?
Installing some items in the user's home directory is generally a bad idea. There are usually other ways to accomplish what you want that work properly in all contexts. Of course, we don't know the desired end result, but generally speaking, it's better to install these things either within the application bundle, or in /Library/Application Support/foo, and on first launch of your software, copy needed things from the application bundle or /Library/Application Support/foo/ to the user's home. If you cannot modify the software to get this behavior, then install a LaunchAgent that accomplishes the same thing.
-Greg
On Apr 20, 2012, at 9:59 AM, Andrew Peckover wrote:
> Thanks for your reply. I realize what the issue is now.
>
> I have one package that I want to install on the volume selected by the user, and another that I want to install in the user's home directory. (In the same distribution).
>
> Does this require installing the files to a temporary folder and moving them with a script?
>
> Andrew
>
> ----- Original Message ----- From: "Stephane Sudre" <email@hidden>
> To: "Andrew Peckover" <email@hidden>
> Cc: "Installer-Dev mailing-list" <email@hidden>
> Sent: Friday, April 20, 2012 1:40 AM
> Subject: Re: Installing to user documents folder
>
>
> Assuming by OS 4, you mean Mac OS X 10.4 (Tiger), you have access to
> the domain installation options.
>
> You will need to make sure you're building a distribution.
>
> In the Distribution > Configuration pane, check the "User home
> directory" "Install Destination" option and uncheck the "Volume
> selected by user" option.
>
> Reminder: everything from this distribution will be installed in ~/… .
>
> On Fri, Apr 20, 2012 at 2:10 AM, Andrew Peckover <email@hidden> wrote:
>> Hi,
>>
>> I'm using PackageMaker 3.0.3, and am targetting OS 4 and higher. I'd like
>> to install a package to the user's "Documents" or "Library" folder. What is
>> the best way to do this?
>>
>> Andrew
>>
>> _______________________________________________
>> 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