/// <summary> /// Opens the Download window that download the update and execute the installer when download completes. /// </summary> public static void DownloadUpdate() { var downloadDialog = new DownloadUpdateDialog(DownloadURL); try { downloadDialog.ShowDialog(); } catch (TargetInvocationException) { } }
/// <summary> /// Opens the Download window that download the update and execute the installer when download completes. /// </summary> public static bool DownloadUpdate() { var downloadDialog = new DownloadUpdateDialog(DownloadURL); try { return(downloadDialog.ShowDialog().Equals(DialogResult.OK)); } catch (TargetInvocationException) { } return(false); }