diff --git a/AutoUpdater.NET/AutoUpdater.cs b/AutoUpdater.NET/AutoUpdater.cs
index 480419c5..1bd6cea6 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 55c25133..175f4d50 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)