Installers for services

C

Claire

I've created an installer project for my dotnet windows service from visual
studio. I've run the installer and it's depositing the files in their
directory ok
What do I now need to do to install/register the service? I notice that COM
objects are provided for registering automatically but not services.
I've included the file "installutil.exe" in the project. Do I add something
to my project to run this file? Where does it go ?
I assume I'll also have to add something to check for a previous version and
unregister that one.

many thanks
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Add the installer to the project, then add a setup project to the solution,
add the primary output of your service to the setup, finally add a custom
action. IIRC there is a very good article in MSDN about this.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top