**Simple Newbie Question** I have created a windows service that is ready for testing. Which files do I need to move to my test server to setup the service?
Assuming that you have added an installer to the project. Build the project. Navigate to your project folder and find the executable file usually in \bin\debug\MyService.exe
Simply copy this file to the test server. You use the installutil.exe to register and install the service. This file is in the .NET framework folder (make sure you use the newest framework version of this file).
Open a command window on the server and run the command like this
C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil C:\MyService\MyService.exe
This will install the service. Open Services from the admin tools folder and then simply start your service.
To uninstall the service you run the command above with the /u switch like this.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil /u C:\MyService\MyService.exe.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.