Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Vista Win7 Application
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 2:45am
myGuid121
Edited 29-Jan-10 1:18am
v3

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 250
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 DamithSL 125
4 Afzaal Ahmad Zeeshan 120
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 29 Jan 2010
Copyright © CodeProject, 1999-2014
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