You'd have an unprivileged process somewhere. There's at least a
couple of ways to do it:
- make "the installer" a tiny unprivileged program that derives
the user directory, and then runs the "real" installer program
(passing the path, e.g. through an environment variable)
- run the installer itself without privileges; invoke the 2nd app
immediately, then request administrator privileges later
Kevin G.
Here's an interesting one...
Our installer package has to run an app that runs that ultimately
needs to create a file in the current user's preferences dir. At
first glance, calling FindFolder() with kUserDomain would be the
way to get the the desired pathname. Unfortunately, however, since
the installer is running under sudo, all the paths returned by
FindFolder() point into /private/var/root, etc. So the question
becomes, is there any way to get the correct info from FindFolder()?
The goal would be to come up with something as reliable as possible
that doesn't contain any hard-coded paths/assumptions.
Thanks in advance,
Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden