Click here to Skip to main content
11,811,971 members (70,872 online)
Rate this: bad
Please Sign up or sign in to vote.
My Windows desktop app shares settings between Windows users, so I keep a settings file under AllUsers Application Data (wherever that might end up). All works fine on WinXP but on Vista/7 I find that only Windows Administrators can change files this area. I don't yet provide a manifest so each user thinks he can change settings but virtualization ensures that each user actually has his OWN settings file. This breaks the idea of Common (allUsers) AppData.

I could always run my app at Elevated access - BAD idea! for many reasons.

I can set the ACL on my AppData folder at installation time - ok until someone cleans up or loses my folder when subtle bugs happen.

I'm tempted to put the settings back into my Program Files installation folder and set the file's ACL there - would this work? Could I set up a user-writable folder within my installation folder?

Where is my shared application data expected to live?
Posted 28-Jan-10 1:45am
Edited 29-Jan-10 0:18am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I wouldn't suggest playing with ACL at installation time: if you app is installed in a business environment, for example, the changes may fail.

Be careful about putting things in your installation folder as well. If your program ends up in Program Files, you could end up with the same problem.

What are you using to make the program? If you're using the .Net Framework, you could try using the built in Settings features which can have Application scope settings as well as User ones.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 KrunalRohit 319
1 Abhinav S 215
2 Palash Mondal_ 210
3 CHill60 180
4 CPallini 135
0 OriginalGriff 3,893
1 KrunalRohit 2,441
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 29 Jan 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100