mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed installation of service, it was getting a blank filename for the executable.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace NzbDrone.Common
|
|||||||
var serviceInstaller = new ServiceInstaller();
|
var serviceInstaller = new ServiceInstaller();
|
||||||
|
|
||||||
|
|
||||||
String[] cmdline = { @"/assemblypath=" + Process.GetCurrentProcess().StartInfo.FileName };
|
String[] cmdline = { @"/assemblypath=" + Process.GetCurrentProcess().MainModule.FileName };
|
||||||
|
|
||||||
var context = new InstallContext("service_install.log", cmdline);
|
var context = new InstallContext("service_install.log", cmdline);
|
||||||
serviceInstaller.Context = context;
|
serviceInstaller.Context = context;
|
||||||
|
Reference in New Issue
Block a user