Windows Service Install Location

squirrel

Newcomer
Joined
May 12, 2003
Messages
13
Location
UK
Can somebody tell me how I can detect the install location for my windows service in the manner of Application.StartupPath that I would use for a Windows forms location?

I need to be able to open an ini file located in the same folder as the service. The deployment will be done using an msi so the users can install the service to any location so the service will need to know where to look for the .ini.


TIA
 
Back
Top