Rename More Sonarr References

This commit is contained in:
Qstick
2017-09-26 22:06:05 -04:00
parent f69559e4da
commit 5003cd8a14
31 changed files with 108 additions and 113 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
@@ -8,7 +8,7 @@ namespace ServiceInstall
{
public static class ServiceHelper
{
private static string NzbDroneExe => Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName, "Lidarr.Console.exe");
private static string LidarrExe => Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName, "Lidarr.Console.exe");
private static bool IsAnAdministrator()
{
@@ -18,7 +18,7 @@ namespace ServiceInstall
public static void Run(string arg)
{
if (!File.Exists(NzbDroneExe))
if (!File.Exists(LidarrExe))
{
Console.WriteLine("Unable to find Lidarr.Console.exe in the current directory.");
return;
@@ -32,7 +32,7 @@ namespace ServiceInstall
var startInfo = new ProcessStartInfo
{
FileName = NzbDroneExe,
FileName = LidarrExe,
Arguments = arg,
UseShellExecute = false,
RedirectStandardOutput = true,
@@ -59,4 +59,4 @@ namespace ServiceInstall
}
}
}
}