I've noticed that if you move that application .exe file in another location the user settings reset.
In my understanding this happens because the location in the app data folder is based on the path of the .exe as well, which is taken into consideration when the hash is being generated.
I know there are different alternatives, either by using the registry or by creating manually a custom config file, but my question is, is it possible to retain the user settings when the application (.exe) is moved to another location with the default functionality Microsoft provides ?
For my tests I use a standalone application (one .exe file only). Simply moving the file to, lets say /Desktop/Test/
from /Desktop/
causes a new folder to be generated under C:\Users\<user>\AppData\Local\<company>\Appname_Url_<hash>
with the default user.config in it. The old user.config is still available so if you move the .exe file back to its previous location then the previous settings get loaded again. This becomes troublesome not only because you lose the settings, but if you move the file 10 times in 10 different locations you end up with 10 new folders in the appdata.