Write to CommonApplicationData under Vista with limited users

I have a machine specific configuration file that I need to share between non-admin users on the same machine.  The first user is able to create the file (in a subfolder of Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)) --- but if that user logs off and another user logs in, the file's permissions allow only read access for any other user.   We need to have write permission because the data in the configuration file may change.

This has been quite frustrating - I would think that it would be a common problem to have application level defaults that may need to change now and then.  How can this be accomplished?  We really want to use the correct technique so our app won't break in the future.

We've can't use the registry or isolatedstorage (we're a clickonce app).

So what would you recommend?   We need just one shared file that can be accessed by more than one non-admin user on a Vista machine with UAC active.
LVL 2
dogsdieinhotcarsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dogsdieinhotcarsAuthor Commented:
I wrote something that works, and I'll post here in hopes that it helps others.

I test to see if this potential shared file exists and if not in a subdirectory of Environment.SpecialFolder.CommonApplicationData that I created... and if not, I create a blank file with the "Authenticated Users" group having Full Control.  This allows all of the limited account users on the machine the ability to both read/write/delete this file.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dogsdieinhotcarsAuthor Commented:
I had a typo above... here is the correct text.

I wrote something that works, and I'll post here in hopes that it helps others.

I test to see if this potential shared file exists in a subdirectory of Environment.SpecialFolder.CommonApplicationData that I created... and if not, I create a blank file with the "Authenticated Users" group having Full Control.  This allows all of the limited account users on the machine the ability to both read/write/delete this file.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.