windows service did not get installed

Posted on 2008-11-07
Last Modified: 2013-11-26
I have created a very simple windows service that I'm trying to test.  This is the first windows service I have created, so I'm sure I've missed a step.

I built the service and setup projects without errors.  Everything was successful.

However, after I created the setup/deployment project and tried to install the service, the msi installer created the directory /Program Files/company name/program name/ and all the files were listed in the directory, but the service does not show up in the services control panel list.  It never got installed as a service.

What am I missing?

Please let me know if I need to attach any code to help spot my error?

I'm running Visual Studio 2005.

Thanks for any help.
Question by:-Dman100-
    LVL 3

    Accepted Solution

    This is a complicated topic.  Please go to the following link, download the file and review the document in this archive called "Installing Services.doc":

    There are some good examples (C#) included that might help you.

    Author Comment

    Hi dherring,

    Thanks for replying to my post.  I have downloaded the file and read the document, but I'm still a little lost.

    I thought it might help you saw the solution code.  I've attached the in a zip file the entire solution, which it is a very small program.

    Perhaps you can see where I might have gone wrong in the code.

    Thanks again.


    Author Comment

    well, heck, it didn't let me attach the zip file.
    LVL 3

    Expert Comment

    Sorry you had trouble with the zip file, Dman.  Sounds like you figured it out.  If you get a chance, post a brief summary of what you ended up doing to solve the problem, especially if it was something simple, for others that may find and use this thread.  You could try the Attach Code Snippet feature, to see if that works better than the zip file attach.  I'm glad Phil Wilson's article was helpful to you.  He did a really nice job laying out the ins and outs of installing Services.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now