Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing a windows service from a Visual Studio Installer project

A colleague has written a Windows Application and left me to do the installers. I have created the installer project through Visual Studio and added the primary output of the service project to the new project.

When I run the installer it creates the correct folders and copies the dlls, exe and config file in, but it doesn't do the actual install of the service.

The service isn't listed in the Services window, and if I double click on the exe I'm told I need to run installutil to install the service.

How do I make the installer do this bit for me? I found this article:

http://www.codeproject.com/KB/install/InstallService.aspx

but that seems overly complex for what I would expect to be pretty basic.

like image 444
Ben Avatar asked Jan 02 '09 15:01

Ben


People also ask

How do I add a Windows Service project installer?

In Solution Explorer, access Design view for the service for which you want to add an installation component. Click the background of the designer to select the service itself, rather than any of its contents. With the designer in focus, right-click, and then click Add Installer.


1 Answers

I used this article:

How to create a Setup project for a Windows Service in Visual Basic .NET or in Visual Basic 2005

Felt pretty dumb that I couldn't figure it all out until I went through all of the steps in this article. It's not a trivial exercise by any means.

like image 131
thaBadDawg Avatar answered Sep 24 '22 12:09

thaBadDawg