Folders created in C:\ProgramData are readable by all users, but content is updatable only the creator owner.
Obtained by using System.Environment.SpecialFolder.CommonApplicationData Not good if you have a configuration filer and shared log files to be updated by all users. To use this I would need to change permissions during the installation process (not sure how to do this at the present). Folders created within C:\Users\Public\Documents are readable and updatable by all users. So this is the easiest place . Obtained by using System.Environment.SpecialFolder.CommonDocuments Not sure if to use this or the parent folder. Good reference is http://blogs.msdn.com/b/patricka/archive/2010/03/18/where-should-i-store-my- data-and-configuration-files-if-i-target-multiple-os-versions.aspx Regards Peter From: [email protected] [mailto:[email protected]] On Behalf Of Peter Maddin Sent: Wednesday, 22 June 2011 5:50 PM To: 'ozDotNet' Subject: RE: Folder to share and update configuration data and sub folders I had a look at a few sub folders in C:\ProgramData and these have special permissions set that looks like they should be ok I think I might try this and see if works ok. From: [email protected] [mailto:[email protected]] On Behalf Of Greg Keogh Sent: Wednesday, 22 June 2011 5:02 PM To: 'ozDotNet' Subject: RE: Folder to share and update configuration data and sub folders >I am wondering if the folder defined by Environment.SpecialFolder.CommonApplicationData would be better. I've been using this for application specific data storage shared by any user. However, I just looked at the permissions: ProgramData NT AUTHORITY\SYSTEM:(OI)(CI)(F) BUILTIN\Administrators:(OI)(CI)(F) CREATOR OWNER:(OI)(CI)(IO)(F) BUILTIN\Users:(OI)(CI)(RX) BUILTIN\Users:(CI)(WD,AD,WEA,WA) And I think I've made a boo boo. The CREATOR OWNER has full control, so if I run an app as one user it may fail as another user. I'll have to check this out to be sure I'm using the correct folder. Sorry I didn't answer your question, I just noticed this issue after reading your problem. Greg
