Subscribe - It's FREE!!

Stay Connected Here

Stay Updated With Us Here



Google

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.

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

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

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.


Visual Studio 2008 Shell and TFS integration

Visual Studio 2008 Shell and TFS integration is the problem for all newbies of BIDS and TFS. Here is the solution.


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.


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.


Best CSS Gradient background generator tools online

Here are some best CSS gradient background code generator online tools using which you can create a cross browser css code for gradient backgrounds.


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!

x