Paul Michaels
Paul Michaels

Reputation: 16705

Windows Service Setup Project

I’m trying to create a set-up project for a windows service. I’ve followed this tutorial and many others like it but, after installing my service, I still can’t see the service. I’ve added the primary output of the service to the application directory and created a custom action to include this output on Install, Commit, Rollback and Uninstall.

It claims that it installs correctly.

Should this work? Is there anything else that I can try to get this to install?

Upvotes: 6

Views: 10707

Answers (2)

Jerther
Jerther

Reputation: 5995

In my case, adding the installer was a first step as described by dhirschl's answer. I then needed to add custom actions to the setup project.

Right click the setup project/view/custom actions

then add the primary output to every folder there.

Source

Upvotes: 0

dhirschl
dhirschl

Reputation: 2098

Did you create an installer for your service? It is separate from a Setup Project.

See: http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.aspx

You can create an Installer by right-clicking on your service's Design window and selecting Add Installer.

Upvotes: 5

Related Questions