PDA

View Full Version : Shared config file



NewsArchive
01-22-2011, 01:06 AM
Hi

My application needs a configuration file for storing some settings. I
have placed this in "CommonAppData" and thought I was good to go.

Now it turns out that apparently only the creator has write access to
this file. Other standard users only have read access. But I need all
users to be able to change the configuration and save it in the
configuration file.

So, what to do:
1) Can I in some way grant all users access to the folder that I place
the configuration-file in, when installing my program with Setup
Builder? or...
2) Should I save the configuration file in some other place?

TIA - and have a nice weekend.

/Kasper

NewsArchive
01-22-2011, 01:07 AM
In many cases, you're better off setting permissions yourself so you know
what your users will be dealing with.

This thread has interesting information:
http://www.lindersoft.com/forums/showthread.php?t=11410

HTH

Jane

NewsArchive
01-25-2011, 08:21 AM
Finally the softvelocity news server is responding again - and of course
there's already a good answer to my question! :-)

This looks exactly like the info I need, will incorporate it in my setup
script to set the permissions myself.

I was surprised that this is necessary in Common App data, since I
thought is was meant for sharing data between multiple users.

But anyway - thank you for the information, think I'm good to go.

Best regards

Kasper