This is not the Actual “Installer”. This is code needed for the Service to operate correctly.
We will get to Installing and Deploying Later…
Add the Installer Code:
From Service1 designer, right click in the gray area and choose Add Installer.
Another file will be added to your Solution Explorer, called ProjectInstaller. On this class will be to components in the designer, ServiceProcessInstaller1, and ServiceInstaller1.
Lets configure the Installer: Click on the listed component and alter the following properties: