diff --git a/src/ui/windows/TogglDesktop/TogglDesktop/Services/UpdateService.cs b/src/ui/windows/TogglDesktop/TogglDesktop/Services/UpdateService.cs index 2580eb0bce..b84b84498e 100644 --- a/src/ui/windows/TogglDesktop/TogglDesktop/Services/UpdateService.cs +++ b/src/ui/windows/TogglDesktop/TogglDesktop/Services/UpdateService.cs @@ -5,9 +5,11 @@ using System.Reactive.Linq; using System.Reactive.Subjects; using System.Reactive.Threading.Tasks; +using System.Reflection; using System.Threading.Tasks; using Onova; using Onova.Exceptions; +using Onova.Models; using Onova.Services; namespace TogglDesktop.Services @@ -21,6 +23,7 @@ public UpdateService(bool isUpdateCheckDisabled, string updatesPath) { IsUpdateCheckEnabled = !isUpdateCheckDisabled; _updateManager = new UpdateManager( + AssemblyMetadata.FromAssembly(Assembly.GetEntryAssembly() ?? Assembly.GetAssembly(typeof(UpdateService))), new LocalPackageResolver(updatesPath, "TogglDesktopInstaller*.exe"), new NsisPackageExtractor());