How to clear the user settings file during deletion?

When used Settings.settings, when the user changes the setting, he saves it:

% AppData% \ Local \ Microsoft \% ProcessName% _Url_% hash code% \% version% \ user.config

It is very difficult for the InnoSetup uninstaller to clear all these files.

Is there an easier way?

+3
source share
1 answer

There is a way to change where ms configuration files save the recording settings, but after studying this question, I just avoided the MS settings files (except for the app.exe.config file, which is located in the same folder as exe itself) and simply used XML serialization for serialize \ deserialize my own settings object to the corresponding \ AppData \ Folder folder.

+1

Source: https://habr.com/ru/post/1790692/


All Articles