Merge pull request #41 from NzbDrone/service-dependencies

Service dependencies
pull/2/head
Mark McDowall 11 years ago
commit 2bc34e2d57

@ -71,6 +71,7 @@ namespace NzbDrone.Common
serviceInstaller.ServiceName = serviceName; serviceInstaller.ServiceName = serviceName;
serviceInstaller.Description = "NzbDrone Application Server"; serviceInstaller.Description = "NzbDrone Application Server";
serviceInstaller.StartType = ServiceStartMode.Automatic; serviceInstaller.StartType = ServiceStartMode.Automatic;
serviceInstaller.ServicesDependedOn = new[] { "EventLog", "Tcpip" };
serviceInstaller.Parent = installer; serviceInstaller.Parent = installer;

@ -26,7 +26,7 @@ namespace ServiceInstall
{ {
if (!File.Exists(NzbDroneExe)) if (!File.Exists(NzbDroneExe))
{ {
Console.WriteLine("Unable to find NzbDrone.exe in the current directory."); Console.WriteLine("Unable to find NzbDrone.Console.exe in the current directory.");
return; return;
} }

Loading…
Cancel
Save