|
|
|
@ -81,22 +81,6 @@ namespace NzbDrone
|
|
|
|
|
_serviceProvider.UnInstall(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case ApplicationMode.Silent:
|
|
|
|
|
{
|
|
|
|
|
var startInfo = new ProcessStartInfo();
|
|
|
|
|
startInfo.FileName = _environmentProvider.GetNzbDroneExe();
|
|
|
|
|
startInfo.WorkingDirectory = _environmentProvider.ApplicationPath;
|
|
|
|
|
|
|
|
|
|
startInfo.UseShellExecute = false;
|
|
|
|
|
startInfo.RedirectStandardOutput = true;
|
|
|
|
|
startInfo.RedirectStandardError = true;
|
|
|
|
|
startInfo.CreateNoWindow = true;
|
|
|
|
|
|
|
|
|
|
_processProvider.Start(startInfo);
|
|
|
|
|
|
|
|
|
|
Environment.Exit(0);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
@ -119,7 +103,6 @@ namespace NzbDrone
|
|
|
|
|
|
|
|
|
|
if (arg == "i") return ApplicationMode.InstallService;
|
|
|
|
|
if (arg == "u") return ApplicationMode.UninstallService;
|
|
|
|
|
if (arg == "s") return ApplicationMode.Silent;
|
|
|
|
|
|
|
|
|
|
return ApplicationMode.Help;
|
|
|
|
|
}
|
|
|
|
|