[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


InstallUtil For Window Service

Posted on 2005-05-13
Medium Priority
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

ID: 13995433
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

Accepted Solution

mpf1748 earned 500 total points
ID: 13996733
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).

Expert Comment

ID: 13998034
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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 shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

873 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