Windows Service Setup Project

Paul Michaels picture Paul Michaels · Apr 13, 2011 · Viewed 10.6k times · Source

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?

Answer

dhirschl picture dhirschl · Apr 13, 2011

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.