mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
static void Main()
|
||||
private static void Main()
|
||||
{
|
||||
ServiceHelper.Run(@"/i");
|
||||
}
|
||||
|
||||
@@ -31,18 +31,18 @@ namespace ServiceInstall
|
||||
}
|
||||
|
||||
var startInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = LidarrExe,
|
||||
Arguments = arg,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
CreateNoWindow = true
|
||||
};
|
||||
{
|
||||
FileName = LidarrExe,
|
||||
Arguments = arg,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
CreateNoWindow = true
|
||||
};
|
||||
|
||||
var process = new Process { StartInfo = startInfo };
|
||||
process.OutputDataReceived += (OnDataReceived);
|
||||
process.ErrorDataReceived += (OnDataReceived);
|
||||
process.OutputDataReceived += OnDataReceived;
|
||||
process.ErrorDataReceived += OnDataReceived;
|
||||
|
||||
process.Start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user