Subscribe - It's FREE!!

Stay Connected Here

Stay Updated With Us Here


Install windows service without visual studio command prompt

Share with WhatsApp

In this post I am going to cover small but very useful information about how you can install .NET windows service without visual studio command prompt.

Many developers use visual studio's command prompt which is avilable under visual studio tools to install or uninstall windows service while in developement environment where Visual Studio is installed but some of them still not aware how they can install same .NET windows service on a machine where no visual studio is installed and therefore no visual studio command prompt is available e.g. client machine or deployment environment. So I decided to share this information here.

If you want to install .NET windows service on machine where visual studio is not installed and only .NET framework is installed then you can use normal command prompt to install or uninstall the windows service.

To install the .NET windows service first you need to locate the "InstallUtil.exe" as per the framework version you are targeting for your windows service. Suppose you are targeting verison 4.0 then you can find "InstallUtil.exe" under following location.


Just copy above path and run cmd.exe as administrator and type command like below.

cd C:\Windows\Microsoft.NET\Framework\v4.0.30319

Then to install specific windows service you can copy the windows service exe path and can type a command like below.

InstallUtil "C:\Test Service\TestWindowsService.exe" /i

Install windows service without visual studio command prompt

That's it. If there is no any error in your windows service code then your service gets installed successfully.

To uninstall just type command like below.

InstallUtil "C:\Test Service\TestWindowsService.exe" /u

Hope you have liked this post and you have benefited from it. Thanks.

If you enjoyed this post take 5 seconds to share it! Be Socialable. :-)

Share with WhatsApp

Posts To Read Next

How to call click or any event only once in jQuery

Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.

Typewriter - Automatic TypeScript Template generation from C# classes in Visual Studio

Typewriter, an extension for visual studio that generates TypeScript files from C# code files using TypeScript templates. Convert your C# model classes to TypeScript automatically.

Top 10 Visual Studio things which can boost developers coding speed

Visual Studio 2012 provides some coding features by which you can code faster if use them properly. This post will cover top 10 things among them to boost your development speed.

Speed up coding in Visual Studio with code snippets & samples at your fingertips

Know how you can speed up coding in Visual Studio with Bing Developer Assistant by having millions of code snippets and sample projects at fingertips.

Assembla - Free and private repository to manage your source code online with SVN subversion hosting

With Assembla you can share source code with others online. Free & Private source code repository with SVN Subversion, Git & Perforce Hosting.

Your opinion is valuable for us! Comments, suggetions are welcome.

Submit your Email Id to stay updated with us and get notified with our new posts. It's FREE!
We know this popup is disturbing you!
But We would greatly appreciate if you share us with your friends below!

It will not take more than 2 seconds but will motivate us greatly to write more,share more!