Fixed: Update from version in logs (#2695)

* Fixed: Update from version in logs

Fixes #2694

(cherry picked from commit bc3e3714b97dec19091e45324d9f2b550f1dbbd5)

* fixup! Fixed: Update from version in logs

Closes #2700

* fixup! Fixed: Update from version in logs
pull/2704/head
bakerboy448 3 years ago committed by GitHub
parent 26c8259566
commit 979374d07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,13 +22,13 @@ namespace NzbDrone.Update.UpdateEngine
{ {
try try
{ {
var targetExecutable = Path.Combine(targetFolder, "Lidarr.exe"); var targetExecutable = Path.Combine(targetFolder, "Lidarr.dll");
if (File.Exists(targetExecutable)) if (File.Exists(targetExecutable))
{ {
var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable); var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable);
return versionInfo.FileVersion; return versionInfo.ProductVersion;
} }
} }
catch (Exception ex) catch (Exception ex)

Loading…
Cancel
Save