Vista & CSIDL_? Values again
A brief question,
I have database files that I want to be available to all users on a
computer.
I have been installing them in CSIDL_COMMON_APPDATA
I need to be able to write to these files.
It has been working fine but now I have reports from users that
CSIDL_COMMON_APPDATA generated c:\ProgramData which seems to not aloow
opening in write mode.
I am considering a switch to CSICL_APPDATA
Comments ?
Mike
Re: Vista & CSIDL_? Values again
> I am considering a switch to CSICL_APPDATA
Id consider a switch to %rootdrive%\enercalc\ or %rootdrive%\enercalc\data.
--
Mark Riffey
http://www.rescuemarketing.com/blog/
Guy Kawasaki & the Wall Street
Journal staff read it, maybe you should too.
Re: Vista & CSIDL_? Values again
Not to harp back to my ancient clarionmag articles >>yet again<<...LOL...
BUT... I did point out that the CSIDL_COMMON_APPDATA on Vista is a folder to
which ordinary users do not have Write or Modify permissions.
CSIDL_APPDATA points to a folder within an individual user's folder... OK,
unless he needs to share the data with anybody else who uses the machine.
Of course, you can always use icacls or SetupBuilder to change permissions.
But I favor the suggestion Mark makes to create your own data folder off the
root, which is what I do. Probably not a good idea if you're looking for
Microsoft certification, but I don't see any other downside.
Jane
Re: Vista & CSIDL_? Values again
Yes Jane...I do remember.
But it's much esier to post a question than to re-read everything <BG>
I will check SetupBuilder for permission change ability.
MDB
Re: Vista & CSIDL_? Values again
Hi
I use CSIDL_COMMON_DOCUMENTS (i think it's Arnor who recommend this one) and
do not seem to have any problems, but am i just lucky until now ??
Viggo Poulsen
Re: Vista & CSIDL_? Values again
Hi Viggo,
> I use CSIDL_COMMON_DOCUMENTS (i think it's Arnor who recommend this one) and
> do not seem to have any problems, but am i just lucky until now ??
I could have suggested it and I have been using it for a while now with zero
problems that I know about:) I use it for shared stuff that may need to be
written to, but mainly read from the application, but also accessed by the
installer.
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Re: Vista & CSIDL_? Values again
Why CSIDL_COMMON_DOCUMENTS over CSIDL_APPDATA ?
MDB
Re: Vista & CSIDL_? Values again
Michael
Because Windows lets Everyone read/write to CSIDL_COMMON_DOCUMENTS but write access to
CSIDL_APPDATA requires write permission to be explicitly set for users.
I use an encoded TPS file for several program settings which is controlled via my
program. Have never had a problem from any clients.
But, I agree, that CSIDL_APPDATA looks like the logical place to put program data, and
it works great so long as you are able to manage all the required permission settings.
With SB6, you can give full access to the folder by specifying the EVERYONE group.
HTH
John Griffiths
Re: Vista & CSIDL_? Values again
I just noticed Jane's post and I should have been saying
CSIDL_COMMON_APPDATA in my post.
John Griffiths
>But, I agree, that CSIDL_APPDATA looks like the logical place to put program data, and
>it works great so long as you are able to manage all the required permission settings.
2 Attachment(s)
Re: Vista & CSIDL_? Values again
Mike,
I know better than to post when I've enjoyed fermented grapes.
BUT...
I just don't understand the laziness.
"Don't make me read anything. Just give me a checklist."
OK. Don't read my articles. Download Randy's csidl enumerator from cmag
and run it.
In response to your particular question... running his app on my Vista 64
box (pic) I find that CSIDL_APPDATA resolves to
C:\Users\Jane\AppData\Roaming
Look at the NTFS permissions on that folder (and by default on anything
beneath it). See attached pic. Your original post in this thread says you
want all users to have access to the data. Does this look appropriate???
I respect legitimate requests for help.
Sorry, but I don't respect outright laziness.
Jane