I want to store some files and edit them for my software in common Application Data under Windows 7.
I do not know why Windows 7 doesn’t allow my software to change files
unless I run them as administrator.
Where can I store my files, so it won’t require admin permission?
You should store your application data in a subfolder under
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);. Note that this folder is user-specific.Non-Admin users do not have permission to write to the
CommonApplicationDatafolder, because that folder does not belong to specific users.Note that you can also store your settings by using the Settings Class. To do so, add New Item to your project, pick “Settings File”. This is appropriate for basic settings like strings and numbers.