Re: installing in the user's home directory?
Re: installing in the user's home directory?
- Subject: Re: installing in the user's home directory?
- From: Colin Cornaby <email@hidden>
- Date: Fri, 01 Apr 2011 23:56:16 -0700
This isn't really simple. You've got to install into a temp location, and then copy the file into place in the user directory with a script, and then use the script to fix the permissions (if you're nice, not simply setting the permissions to 777...)
It's been a bit so I don't recall offhand the trick I used to line up the permissions properly. It involved reading the permissions of the parent folder and copying them to the installed files. I'm sure someone else here can help you with that.
If you only need to support 10.5 and higher, I believe the 10.5 package format has an added feature that allows you to install into a home directory.
On Apr 2, 2011, at 12:40 AM, Rich Morin wrote:
> I'm trying to use PackageMaker to create an installer
> that unpacks a directory tree into a sub-directory of
> the user's home directory.
>
> I'd like the permissions and ownership to be "normal"
> (eg, allow the user to read and write files, but not
> everyone on the system). So, the usual advice about
> setting things to root/admin isn't really appropriate
> and I certainly don't want things to be set to MY uid
> on someone else's machine.
>
> Suggestions?
>
> -r
> --
> http://www.cfcl.com/rdm Rich Morin
> http://www.cfcl.com/rdm/resume email@hidden
> http://www.cfcl.com/rdm/weblog +1 650-873-7841
>
> Software system design, development, and documentation
> _______________________________________________
> 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