This post assumes that you ar familiar with creating windows services using VS2010 and that You have added an installer to the design view of your service as described in this MSDN article.
Assuming that you have an open solution containing your windows service – do the following to add and configure a setup project:
- Right click your solution and choose “add” –> “new project”.
- From the menu on the left choose “installed templates” –> “other project types” –> “Setup and deployment” –> Visual studio installer.
- Select “Setup project” and put in a suiting name for the project
add new project screenshot
add project output group