Re: Problems with AppData on Vista.
- From: "Larry Futrell" <lfutrell@xxxxxxxxxxxxxxxxx>
- Date: Mon, 9 Jul 2007 10:52:59 -0400
Chris Becke wrote:
I posted this question in win32.programmer.kernel, but subsequently
realized this NG is probably a better place:-
I have an application that needs to share data between users. To this end
I create a folder using SHGetSpecialFolderLocation with
CSIDL_COMMON_APPDATA. This returns C:\ProgramData on vista. I then create
a subfolder in there for my app.
This works for the first user.
The 2nd user that comes along and attempts to read/write the common data
files gets virtualized off to someplace inside their profile. This is
unwanted.
I actaually want to share data between users.
Have I misunderstood the purpose of c:\ProgramData ? How is it the common
appdata store if subsequent users get Access Denied / virtualized?
And, What then is the simplest way to ensure that different non-admin
users actually can access data? c:\SomeFolderOfMyOwn ? Or do I *really*
need to fiddle with ACLs on my c:\ProgramData folder? Ive avoided the
security APIs for a loong time. For a lot of that time the avoidance was
pragmatic - I needed my app to deploy and run on 95/98/ME. Getting this
App vista compatible however is turning out to be a PITA.
Whats the magic sauce to get common app data to be common on Vista?
I think that the standard is for your installer to create a subdirectory of
the CSIDL_COMMON_APPDATA directory named for your company, then a
subdirectory of that directory named for your application. You can give
those directories whatever ACLs you deem appropriate for the type of sharing
you want to do. It is all explained fairly well in this article, which
although written for Windows 2000, still seems to be applicable to Vista.
http://msdn2.microsoft.com/en-us/library/ms995853.aspx
--
Larry Futrell
.
- Follow-Ups:
- Re: Problems with AppData on Vista.
- From: Chris Becke
- Re: Problems with AppData on Vista.
- References:
- Problems with AppData on Vista.
- From: Chris Becke
- Problems with AppData on Vista.
- Prev by Date: Re: Secure Sockets
- Next by Date: Re: Problems with AppData on Vista.
- Previous by thread: Problems with AppData on Vista.
- Next by thread: Re: Problems with AppData on Vista.
- Index(es):
Relevant Pages
|