diff --git a/NzbDrone.Common/ServiceProvider.cs b/NzbDrone.Common/ServiceProvider.cs index 7ae6b7559..f1076e6e6 100644 --- a/NzbDrone.Common/ServiceProvider.cs +++ b/NzbDrone.Common/ServiceProvider.cs @@ -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;