If you are using Visual Studio for your service implementation, open that solution in Visual Studio, and right click on the windows service project and click Properties.
In the properties window, Select the Build tab on the right hand side, and then find the Output section which will tell you the output path of the exe.
This way you con locate where the exe file of your service is.
To install the service, you do not have to navigate to windows/microsoft.net/framework location when you open visual studio developer command prompt. Instead, navigate to the folder where your project.exe resides and then call install project.exe
Hope this helps
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…