I have a machine specific configuration file that I need to share between non-admin users on the same machine. The first user is able to create the file (in a subfolder of Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)) --- but if that user logs off and another user logs in, the file's permissions allow only read access for any other user. We need to have write permission because the data in the configuration file may change.
This has been quite frustrating - I would think that it would be a common problem to have application level defaults that may need to change now and then. How can this be accomplished? We really want to use the correct technique so our app won't break in the future.
We've can't use the registry or isolatedstorage (we're a clickonce app).
So what would you recommend? We need just one shared file that can be accessed by more than one non-admin user on a Vista machine with UAC active.