AutoUpdater.NET
AutoUpdater.NET copied to clipboard
Can I add support for error callback
I want to exit the error prompt and restart the program automatically when the program updates error
The error should be caught by handler at least in program main. And if wanting to restart from the handler (or a catch block) I believe there is an Application.Restart() method. But careful with that because it can cause an endless loop if there's an error from the app starting. May want to instead catch the error and show a message box and give option to restart application and use DialogResult to Application.Restart() it DialogResult == Yes
It would be useful to be able to control what happens if the update zip file download fails. For example, if the download times out or fails for another network related reason, an exception is thrown from the DownloadUpdateDialog and an error modal is shown with the exception message (https://github.com/ravibpatel/AutoUpdater.NET/blob/master/AutoUpdater.NET/DownloadUpdateDialog.cs#L96). Here's an example of what that looks like for reference; in this case the client loses connection to the server and the download fails:

@ravibpatel I have a patch which enables the zip file download to be retried on failures and could be extended to allow customizable behavior as is possible if the update .xml file download fails via AutoUpdater.CheckForUpdateEvent. Do you think this feature would be worth having in a future release?
Any fix for this problem? I would like to hide the "WebException" frame and let application to continue.
@ravibpatel Is there any update for this? Would you be interested in a PR with a fix for handling exceptions in the DownloadUpdateDialog form?