ClickOnce and UserSettings

孤街醉人 提交于 2019-12-05 11:17:16

I believe the user config values are stored in this location:

%APPDATA%\<AppName>\<AppName><AppConfigName_GUID>\<AssemblyVersion>\user.config

Have you checked there?

ok, in case anyone has the same problem in the future. I had set the properties in Visual Studio through the Settings.settings editor. I removed them and everything was normal again...

JohnnyJP

In answer to the general problem of removing settings when the program is reinstalled, you could add unique piece of data as well, such as the date of the executable, its checksum, or something similar.

Then check that against the saved data when you program starts. If they don't match, it's a reinstall and you can delete the stored data.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!