-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console Debug to find errors #16
Comments
did you try handling the update logic yourself by subscribing to CheckForUpdateEvent? You can do it like this. AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;
private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args)
{
if (args != null)
{
if (args.IsUpdateAvailable)
{
var dialogResult =
MessageBox.Show(
string.Format(
"There is new version {0} available. You are using version {1}. Do you want to update the application now?",
args.CurrentVersion, args.InstalledVersion), @"Update Available",
MessageBoxButtons.YesNo,
MessageBoxIcon.Information);
if (dialogResult.Equals(DialogResult.Yes))
{
try
{
//You can use Download Update dialog used by AutoUpdater.NET to download the update.
AutoUpdater.DownloadUpdate();
}
catch (Exception exception)
{
MessageBox.Show(exception.Message, exception.GetType().ToString(), MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
}
else
{
MessageBox.Show(@"There is no update available please try again later.", @"No update available",
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else
{
MessageBox.Show(
@"There is a problem reaching update server please check your internet connection and try again later.",
@"Update check failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
} |
did above solution fix your issue? |
Now you can set ReportErrors to true and it will show you the errors. |
Hi @ravibpatel thanks for your answer, I indeed used ReportErrors, however the class is working fine so no errors reported, thanks again for sharing. |
Does it also show errors even when the UpdateInfoEventArgs is null? |
Yes, It will show error when UpdateInfoEventArgs is null. |
I've followed the class documentation and even some guides found on the web. However, when loading my c# wpf app, there is no update dialog. I want to know if there is a method to print on console, any errors. Thanks.
The text was updated successfully, but these errors were encountered: