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

This commit is contained in:
Mark McDowall 2011-10-24 23:47:28 -07:00
parent 6b26843b50
commit c86cf76181
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ namespace NzbDrone.Common
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;