From 017419b2cdb13c65bf8dbeca151c2fa4bd251639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Tue, 26 Mar 2024 12:36:57 +0100 Subject: [PATCH] Support system-wide installations Closes #7 --- Guard/Installer/installer.iss | 2 ++ Guard/Views/Pages/Start/UpdatePage.xaml.cs | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Guard/Installer/installer.iss b/Guard/Installer/installer.iss index 27ba81c..9c96b2a 100644 --- a/Guard/Installer/installer.iss +++ b/Guard/Installer/installer.iss @@ -33,6 +33,8 @@ ShowLanguageDialog=auto DisableReadyPage=yes UsePreviousTasks=yes DisableFinishedPage=yes +PrivilegesRequiredOverridesAllowed=dialog +ArchitecturesInstallIn64BitMode=x64 [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" diff --git a/Guard/Views/Pages/Start/UpdatePage.xaml.cs b/Guard/Views/Pages/Start/UpdatePage.xaml.cs index c62d1b7..fc48328 100644 --- a/Guard/Views/Pages/Start/UpdatePage.xaml.cs +++ b/Guard/Views/Pages/Start/UpdatePage.xaml.cs @@ -1,9 +1,9 @@ -using System.Diagnostics; +using Guard.Core; +using Guard.Core.Installation; +using System.Diagnostics; using System.IO; using System.Windows; using System.Windows.Controls; -using Guard.Core; -using Guard.Core.Installation; namespace Guard.Views.Pages.Start { @@ -57,7 +57,7 @@ private async void Install_Click(object sender, RoutedEventArgs e) ) : Path.Combine( Path.GetTempPath(), - $"2FAGuard-Installer-{updateInfo.Version}-{DateTimeOffset.UtcNow.ToUnixTimeSeconds()}.exe" + $"2FAGuard-Updater-{updateInfo.Version}.exe" ) );