Question Deploy to Test Server

jaylrob

New member
Joined
Mar 10, 2010
Messages
1
Programming Experience
Beginner
**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?
 
Follow these steps

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.

Ty
 
Back
Top