mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed installation of service, it was getting a blank filename for the executable.
This commit is contained in:
parent
6b26843b50
commit
c86cf76181
@ -36,7 +36,7 @@ public virtual void Install()
|
||||
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);
|
||||
serviceInstaller.Context = context;
|
||||
|
Loading…
Reference in New Issue
Block a user