From 309ac6b00368b13ab32456594c655070d2e5bd21 Mon Sep 17 00:00:00 2001 From: Nikola Milosavljevic Date: Fri, 9 Oct 2020 08:51:47 -0700 Subject: [PATCH] Check for updates before starting the app --- src/clickonce/MageCLI/Mage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clickonce/MageCLI/Mage.cs b/src/clickonce/MageCLI/Mage.cs index 0e8bc52caf..f60d19219f 100644 --- a/src/clickonce/MageCLI/Mage.cs +++ b/src/clickonce/MageCLI/Mage.cs @@ -134,7 +134,7 @@ public static DeployManifest GenerateDeploymentManifest(string deploymentManifes { manifest.Install = true; manifest.UpdateEnabled = true; - manifest.UpdateMode = UpdateMode.Background; + manifest.UpdateMode = UpdateMode.Foreground; } else { @@ -331,7 +331,7 @@ public static void UpdateDeploymentManifest(DeployManifest manifest, string depl { manifest.Install = true; manifest.UpdateEnabled = true; - manifest.UpdateMode = UpdateMode.Background; + manifest.UpdateMode = UpdateMode.Foreground; // We need to activate the set method on these fields since the XML // representation might not be in sync with the propery value.