Creating a Windows service does not explain, and the other great gods write too much. Here is a tutorial that only writes a project to install multiple services. such as: http://www.cnblogs.com/zzgblog/p/4595839.html
Start by creating multiple services. Name everyone at random. I'm using a project I've created.
With my creation as an example, I created two service files
Open each service file and right-click Add Installer. Click to see how to add the installer
Specifies the relationship of the installation control to the service through the servicename in the ServiceInstaller1, ServiceInstaller1 property.
Finally, add the service in the main function
Well, when the installation is complete, there will be two services.
Provides a batch file for installation and uninstallation. Windows batch File
Finally, let's talk about how servicename in the ServiceInstaller1 property is named.
C # Windows Services One project installs multiple services