Getting a user's preferences folder while requiring admin authorization
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:from; b=dgIw4SZoR+eimn8HD6AHRqrfV23GAWt15fadLEGV/XdU7QsXMJragoskoG0PmKp1dtJn/ZpcmyCgPesw1MAhlsJV597KzYac8GqhQ+LNaMbvUL3SJ3xtwQyz1euO8tXUDq4mpJ1ig64oIZDqFbV5kF/MKkDMufwSLM4mkzpM+Hc= User-agent: Thunderbird 1.5.0.7 (Windows/20060909) Hi folks, - Rick _______________________________________________ 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... 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! This email sent to site_archiver@lists.apple.com
participants (1)
-
cohen.rick@gmail.com