terrible83 wrote:
because i need to set it as current directory for the windows service i've created
As someone pointed out in the past few days, best practice is to use absolute paths. To obtain the path you can access the installation path using the Windows Installer SDK in your service, that is what you are asking correct? However AFAIK this should work: System.Reflection.Assembly.GetExecutingAssembly().Location