a place shared ini file

A place for shared ini-file

Hello, All!
We
have a problem with the default Vista security settings. We need a place to save our ini file with setting and we want to allow any user to write to this file. Previously we could use "C:\Documents and Settings\All Users\Application Data" folder for this purpose but now even an Administrator cannot even open this folder and folder "C:\Users\Default\AppData" is read only for regular user. Could you give us advice for any place where we can store our settings on Vista sysem?
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

I'm just a developer and not from MS. I'm wondering why you couldn't just put the ini file in the program folder?

Hello, Bernie!
The point is to provide read/write access to a user without any additional rights. A regular user doesn't have write permission to the "Program Files" folder
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

Sorry. I understood the point but didn't know about write permissions to program files. Would it be acceptable for each user to have their own ini file? I've a few apps of my own that look like they would be broken by this too.

Hello, Bernie!
It's posible to put some of the settings to separate files for every user (for example in the folder "c:\users\<current user name>\AppData"), but we still need a major file for general settings that would be accessable for everyone.
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

Hello, All!
We have a problem with the default Vista security settings. We need a place to save our ini file with setting and we want to allow any user to write to this file. Previously we could use "C:\Documents and Settings\All Users\Application Data" folder for this purpose but now even an Administrator cannot even open this folder and folder "C:\Users\Default\AppData" is read only for regular user. Could you give us advice for any place where we can store our settings on Vista sysem?
Thanks.
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

Hello, All!
We have a problem with the default Vista security settings. We need a place to save our ini file with setting and we want to allow any user to write to this file. Previously we could use "C:\Documents and Settings\All Users\Application Data" folder for this purpose but now even an Administrator cannot even open this folder and folder "C:\Users\Default\AppData" is read only for regular user. Could you give us advice for any place where we can store our settings on Vista sysem?
Thanks.
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

C:\ProgramData\
I believe this is what you are looking for ... at first glance at the security settings it doesn't appear to allow normal users write access, but if you try it out or look in the advanced screens it works fine.
- JB

Jimmy Brush wrote:

C:\ProgramData\
I believe this is what you are looking for ... at first glance at the security settings it doesn't appear to allow normal users write access, but if you try it out or look in the advanced screens it works fine.

Don't hardcode it though... non-US versions probably won't call it that (I asumme the 'All Users' path wasn't hardcoded...).
You get it by querying for CSIDL_COMMON_APPDATA with SHGetFolderPath.
OTOH looking at it you should *already* be using that since it corresponds directly to the All Users\Application Data directory that exists on XP.
I really hope the OP wasn't hardcoding that path...
Tony

Thanks, guys!!! This information is very useful for us!
With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru

Windows Vista

Topic:


Nick: