InstallUtil For Window Service

Posted on 2005-05-13
Last Modified: 2008-01-09

I have a window service locally on my machine. I use the InstallUtil utility that comes with .NET to install the service
via the .NET Command Prompt.

I want to install my web service on another server, but that server only has the .NET framework. Is the .NET Command
Prompt and InstallUtil a stand alone thing where I can install separately in order to register my window service on that server.
Please advise

Question by:tinman1412

    Expert Comment

    I've done this in the past -- just copy the InstallUtil.exe file into the directory with your compiled web service files -- and run as you do normally... i.e.,

    installutil myAssembly.exe
    installutil /u myAssembly.exe
    LVL 3

    Accepted Solution

    The .Net Command Prompt is a normal command prompt with a few extra mappings. You can use InstallUtil from a normal command prompt if you specify the full path or add the path of the InstallUtil to your PATH variable. The location of the InstallUtil is in your Windows folder under the Microsoft.NET\Framework\v<Version of .Net Framework>. (i.e. v1.1.4322 in my case).
    LVL 1

    Expert Comment

    you dont need to include installutil in your project.

    just tell the custom actions in your setup project to run your installer that you added to your windows service.

    I just did this for the first time last week, and it worked great without having to package in the installutil executable.



    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

    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now