Best place to store data / settings for a .net Service and a GUI Frontend -
i have program runs service , runs simultaneously service front end.
what best strategy storing files , data both these instances.
the program runs in 3 modes :-
- completely service
- service , front end gui (ie 2 instances)
- gui
in cases, files , configuration need have create / read / write access , accessible in every other mode
applicationdata, localapplicationdata, seem user specific, , don't want service run under user account
commonapplicationdata, think has restrictions general users under uac
commonprogramfiles programfiles has restrictions general users under uac
however last 2 examples there options of setting permissions on install
does have elegant solution this, or can point me in right direction
thanks
the %allusersprofile%
environment variable should suit needs. points c:\documents , settings\all users
on winxp , c:\programdata
on modern windows, both of storage of user-agnostic program data.
Comments
Post a Comment