开发者

How to cleanup the user settings file on uninstall?

开发者 https://www.devze.com 2023-02-09 01:00 出处:网络
When using Settings.settings when an user changes a setting it saves it to开发者_开发问答: %AppData%\\Local\\Microsoft\\%ProcessName%_Url_%hashCode%\\%version%\\user.config

When using Settings.settings when an user changes a setting it saves it to开发者_开发问答:

%AppData%\Local\Microsoft\%ProcessName%_Url_%hashCode%\%version%\user.config

For an InnoSetup uninstaller it is very difficult to clean all those files.

Isn't there an easier way?


There is a way to change where the ms config stuff writes settings, but after researching it, I ended up just avoiding the MS settings stuff (except for the app.exe.config file that's in the same folder as the exe itself) and just used XML serialization to serialize\deserialize my own settings object into an appropriate \AppData\Folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消