From 6ce9c779c12690c84fef5a00d47c23512bcdafb4 Mon Sep 17 00:00:00 2001 From: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com> Date: Fri, 4 Mar 2022 13:34:15 -0600 Subject: [PATCH] Fixed: Update from version in logs Closes #873 Closes #877 (cherry picked from commit bc3e3714b97dec19091e45324d9f2b550f1dbbd5) (cherry picked from commit b34f4fde1bbe611bb5c886890e3be7cec2b96e6b) --- src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs index 1de3db7d0..3bc7687a7 100644 --- a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs +++ b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs @@ -22,13 +22,13 @@ namespace NzbDrone.Update.UpdateEngine { try { - var targetExecutable = Path.Combine(targetFolder, "Prowlarr.exe"); + var targetExecutable = Path.Combine(targetFolder, "Prowlarr.dll"); if (File.Exists(targetExecutable)) { var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable); - return versionInfo.FileVersion; + return versionInfo.ProductVersion; } } catch (Exception ex)