Fixed installation of service, it was getting a blank filename for the executable.

pull/3113/head
Mark McDowall 13 years ago
parent 6b26843b50
commit c86cf76181

@ -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;

Loading…
Cancel
Save