Getting full path for Windows Service

Solution 1:

Try

System.Reflection.Assembly.GetEntryAssembly().Location

Solution 2:

Try this:

AppDomain.CurrentDomain.BaseDirectory

(Just like here: How to find windows service exe path)