开发者

How to cleanup the user settings file on uninstall?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜