Philippsen's Blog

Everyday findings in my world of .net and related stuff

Creating a setup project for a windows service using VS2010

Posted by Torben M. Philippsen on November 8, 2010

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:

  1. Right click your solution and choose “add” –> “new project”.
  2. From the menu on the left choose “installed templates” –> “other project types” –> “Setup and deployment” –> Visual studio installer.
  3. Select “Setup project” and put in a suiting name for the project

    add new project screenshot

    add new project screenshot

  4. Setup project screenshot
  5. add project output group

    add project output group

  6. Custom actions

    Custom actions


4 Responses to “Creating a setup project for a windows service using VS2010”

  1. kevin yen said

    thanks a lot, it really helps!!

  2. Joe Sheble said

    This was helpful, but I’m curious if the service is marked as Automatic for running, why doesn;t the service start after it’s installed?

  3. Detective Jeera said

    Really Helped A lot and in a few minutes, I was able to install service using setup.

  4. […] For Deployment purpose we can make use of the installer package as mentioned in these articles MSDN, Torben M. Philippsen […]

Sorry, the comment form is closed at this time.

%d bloggers like this: