From 76de18b74496b5434a7e2d435747c22438c7856b Mon Sep 17 00:00:00 2001 From: Nicholas Carpenter Date: Sat, 31 Jan 2015 22:51:44 -0500 Subject: [PATCH] Fix needing to call install command from same directory. --- ServiceDescriptor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ServiceDescriptor.cs b/ServiceDescriptor.cs index 0949bd5..826e096 100755 --- a/ServiceDescriptor.cs +++ b/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); } }