%ProgramData%
%ProgramData%
optionHow to write to that folder?
Check this out:
Specifying c:\ProgramData folder in Setup project?
string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
CommonApplicationData is C:\ProgramData
on Windows > Vista, and something like C:\Documents and Settings\All Users
on XP.