Creating Needed Installers for Windows Services

 

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.

serviceblank

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:

ServiceProcessInstaller1:

  • Account = LocalSystem   (will cause service to run under local service account)
  • serviceProperties1

    ServiceInstaller1

  • ServiceName = NewService
  • StartType = Automatic     (Whether your service will auto start after reboot)
  • DisplayName =  NewService
  • serviceProperties2

    Now we will Build and Install the service to test it out.

    Services Part 3:>  Build and Install your Windows Service

     

     

    Programmers – Use your talents to make some money online.  Click Here to Read More

    Author: Nick Jolin

    My name is Nick Jolin and I'm a full time entrepreneur making a living by creating wonderful tools that help people with online marketing. Connect with me on Google+

    Leave a Reply

    Your email address will not be published. Required fields are marked *