AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Keep user's settings after updating

Open Ares-87 opened this issue 5 years ago • 5 comments

Hello, at every update, my application lose the saved settings, how I keep user.config's settings after updating? And is possible update also if I have renamed the file.exe? The updater enter in loop mode. Thank you

Ares-87 avatar Jul 23 '19 11:07 Ares-87

Do you include user.config in the update zip file? If yes, then it will overwrite the file on the user's PC.

No, If you are using ZIP file then it is necessary to keep the same filename otherwise it won't work. You can create an installer for an update if you like to change the exe name.

ravibpatel avatar Jul 23 '19 11:07 ravibpatel

I don't include user.config in the zip.

Ares-87 avatar Jul 23 '19 12:07 Ares-87

You may need to upgrade it as suggested in this answer.

ravibpatel avatar Jul 23 '19 12:07 ravibpatel

Would it be possible to integrate that into the package?

AshotN avatar Jul 19 '21 09:07 AshotN

@AshotN It will be better to call it when your application starts.

ravibpatel avatar Jul 19 '21 10:07 ravibpatel