From 72a0e38b36e0fbb286d717e27f1efc4d426e39f8 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Fri, 4 Mar 2022 13:31:44 -0600 Subject: [PATCH] Fixed: Update from version in logs Closes #1574 (cherry picked from commit bc3e3714b97dec19091e45324d9f2b550f1dbbd5) --- src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs index a8f3489a2..4397469ca 100644 --- a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs +++ b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs @@ -1,6 +1,8 @@ using System; using System.IO; using NLog; +using NzbDrone.Common.EnvironmentInfo; +using NzbDrone.Common.Extensions; namespace NzbDrone.Update.UpdateEngine { @@ -22,7 +24,7 @@ namespace NzbDrone.Update.UpdateEngine { try { - var targetExecutable = Path.Combine(targetFolder, "Readarr.exe"); + var targetExecutable = Path.Combine(targetFolder, BuildInfo.AppName.ProcessNameToExe()); if (File.Exists(targetExecutable)) {