If you want to install your Service on other PC’s.  The you want to make an Installer Package.

 

Build the Setup Package for Your Windows Service:

Prerequisites:  You will need to have .net 3.5 on the target pc.

Choose File> Add> New Project.

serviceblank

At the Add New Project window, Choose:

 

servicesetup1

 

Right click on Setup1 in Solution Explorer and choose:servicesetup2

At Add Project Output Group,  It will select NewService as the Primary Output.  Just hit OK.

Then you need to tell Setup to Install the Service.  Do this by right clicking Setup1. Choose View > Custom Actions.

Then right click Custom Actions, and choose Add Custom Action.  In Select Item in Project, double click Application Folder:

servicesetup3

 

And choose OK.  It will add one item for each custom Action:
servicesetup4

 

Next, Right click Setup1 and Build.  It will create the Setup Executable in your Projects bin\release folder.

Thats It!.  Run the Setup on the Target computer, and reboot.  It will install and run the Service on reboot.

 

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