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

Swagger - Powerful Opensource Framework for RESTful API

With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability. Swagger Editor allows you to generate code, documentation with ease.

What is Hoisting in JavaScript?

Hoisting in JavaScript, one of the most misunderstood or little understood concept in the JavaScript and remain famous as interview question for JavaScript developers and now also for angular js developer. Lets check out what it means exactly.

Visual Studio Code - Lighweight but powerful source code editor available for Windows, OS X and Linux

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, OS X and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (C++, C#, Python, PHP) and runtimes.

How to post JSON string as a string in jQuery AJAX

Know how to post JSON String as string to the action method of controller in MVC.

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.

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!
Vu 32'' TV Vu 24'' TV
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!