I thought this article did a good job of taking the required steps:
WCF Link
Summarizing:
- First you need to create a new visual studio project such as "Windows Service".
- Next to the ability to install the service, you also need to write a form installer class:
.
[RunInstaller(true)]
public class ProjectInstaller : Installer
{
}
Add your WCF classes to the project, and in the OnStart and OnStop events of the Windows service, you will have to explicitly start the WCF services.
At the visual studio command line, you can install the service using the command
.
installutil myservicename.exe
source
share