site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 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 rdm@cfcl.com 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/colin.cornaby%40mac.com
This email sent to colin.cornaby@mac.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... This email sent to site_archiver@lists.apple.com