Getting a user's preferences folder while requiring admin authorization
Getting a user's preferences folder while requiring admin authorization
- Subject: Getting a user's preferences folder while requiring admin authorization
- From: email@hidden
- Date: Tue, 17 Oct 2006 11:19:26 -0400
Hi folks,
I'm not quite sure if this question belongs here or in the carbon-dev
list, so I'll try this list first. Thanks for your patience!
In my installer, I need to find a user's preferences folder. I had
written a C++ program to do this (using FindFolder with kUserDomain and
kPreferencesFolderType) and called that from a shell script.
I also need to place files into locations that require admin
authorization ("/Library/Audio/Plug-ins/Components").
When I run my installer from an admin account, the FindFolder program
works correctly.
When I run my installer from a non-admin account, the installer
(correctly) asks for the admin username and password. That's fine,
except now my "FindFolder" program thinks that I am the root user, and
finds a path like "/private/var/root/Library/Preferences/".
Any insights or suggestions into solving this dilemma would be greatly
appreciated!
- Rick
_______________________________________________
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