Browse Source

Fix needing to call install command from same directory.

Nicholas Carpenter 10 years ago
parent
commit
76de18b744
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ServiceDescriptor.cs

+ 1 - 2
ServiceDescriptor.cs

@@ -36,8 +36,7 @@ namespace winsw
                 // this returns the executable name as given by the calling process, so
                 // it needs to be absolutized.
                 string p = Environment.GetCommandLineArgs()[0];
-                return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, p);
-
+                return Path.GetFullPath(p);
             }
         }