Installing a Windows Service using - installutil / MyProject.exe

Posted on 2008-11-05
Last Modified: 2013-12-17
I'm trying to install a service but having no luck.  The message returned from 'installutil' (see picture below) is encouraging but nothing shows up in the Service Manager.

Also, how necessary is the 'public installer' option?  This service will probably be deployed as part of an image.  How about install privileges - if an administrator is the only expected installer, the installation should not need a project installer program - right?

Question by:John500
    LVL 35

    Accepted Solution


    net start TestService

    net stop TestService

    If this works fine, too, you will probably have forgotten to set the lpDisplayName parameter in the CreateService() function:

    Author Comment

    Thanks for the input on this.  However, a C# application created from the VS 2005 'Windows\Windows Service'  already has a built-in property/method for this:

    private void InitializeComponent()
            components = new System.ComponentModel.Container();
            this.Servicename = "TestService";

    I believe the 'CreateService()' function is for older VS builds like VS 6.0.

    Also, the following link provides an explanation of how to ensure the Service will install by adding a project installer:


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    734 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

    21 Experts available now in Live!

    Get 1:1 Help Now