From 02ffa15b4a9e3ee55f5a1d213541ee264467ea9f Mon Sep 17 00:00:00 2001 From: Arturo Rodriguez Date: Fri, 8 Aug 2025 22:19:31 -0700 Subject: [PATCH] Add Silent Mode option to AutoUpdater Introduces a 'Silent' property to AutoUpdater for hiding the download dialog. When enabled, the DownloadUpdateDialog is minimized, hidden from the taskbar, and not visible, allowing updates to proceed without user interaction. --- AutoUpdater.NET/AutoUpdater.cs | 5 +++++ AutoUpdater.NET/DownloadUpdateDialog.cs | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/AutoUpdater.NET/AutoUpdater.cs b/AutoUpdater.NET/AutoUpdater.cs index 480419c..1bd6cea 100644 --- a/AutoUpdater.NET/AutoUpdater.cs +++ b/AutoUpdater.NET/AutoUpdater.cs @@ -225,6 +225,11 @@ public static class AutoUpdater /// public static bool ShowSkipButton = true; + /// + /// Set this to true if you want to hide the download dialog (silent mode). + /// + public static bool Silent = false; + /// /// Set this to true if you want to run update check synchronously. /// diff --git a/AutoUpdater.NET/DownloadUpdateDialog.cs b/AutoUpdater.NET/DownloadUpdateDialog.cs index 55c2513..175f4d5 100644 --- a/AutoUpdater.NET/DownloadUpdateDialog.cs +++ b/AutoUpdater.NET/DownloadUpdateDialog.cs @@ -40,6 +40,14 @@ public DownloadUpdateDialog(UpdateInfoEventArgs args) { ControlBox = false; } + + // Silent mode: hide the dialog + if (AutoUpdater.Silent) + { + WindowState = FormWindowState.Minimized; + ShowInTaskbar = false; + Visible = false; + } } private void DownloadUpdateDialogLoad(object sender, EventArgs e)