Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday 28 May 2016

How to install\Uninstall window service in asp.net c#

To install Window Service follow given steps

Go to "Start" >> "All Programs" >> "Microsoft Visual Studio 2012" >> "Visual Studio Tools" then click "Developer Command Prompt for VS2012".

Type the following command:

cd <physical path of your window service>

For example :

cd d:\TestWindowService\FirstWindowService\bin\Debug

and press Enter

InstallUtil.exe  “MyFirstWindowService.exe”
And press enter.


Now goto to servcies for that press window +R and type 'Services.msc'

Press enter now u will see services screen. Search for MyFirstWindowService and right click on it now

Go to "Properties" and set startup Type 'Automatic'

Now right click on MyFirstWindowService  and click on start

-----TO unintall window service----

To  uninstall window service goto physical path of your service as describe above in "Developer Command Prompt for VS2012"
and type following commond

InstallUtil.exe /u MyFirstWindowService.exe"

No comments:

Post a Comment