Home All Groups Group Topic Archive Search About

Best Approach for handling application config files

Author
8 Mar 2007 1:31 AM
chuck rudolph
It appers that System.Windows.Forms.Application.UserAppDataPath changes
drastically when the application is installed via "click once"; (as opposed
to setup or good old file copy). I'm looking for a place to put user data
that spans versions. In the non-click once scheme, all I had to do was back
up one level.

Is System.IO.IsolatedStorage.IsolatedStorageFile the preferred approach? Or
is there some other mechinism for storing application settings for a user?

Thanks for the ideas...Chuck

Author
9 Mar 2007 11:07 PM
chuck rudolph
Isolated storage has the same problem. So my guess is that the best approach
is to call SHGetFolderPath with CSIDL_APPDATA and then create your directory.

AddThis Social Bookmark Button