Application.CommonAppDataPath;

win7的路径

C:\ProgramData\CompanyName\ProductName\2.0.5.1

[assembly: AssemblyCompany("******科技有限公司")]
[assembly: AssemblyProduct("*****软件")]

[assembly: AssemblyVersion("2.0.5.1")]

xp上的路径

C:\Documents and Settings\All Users\Application Data\CompanyName\ProductName\2.0.4.0

05-11 09:22