Click here to Skip to main content
Click here to Skip to main content

Tagged as

Install Windows Service

, 21 Jan 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Today I am going to explain you a simple and quick way to install a Windows Service in your machine.First you must write a Windows Service in your preferred language like (C#,VB.NET etc...). Then follow these quick steps.You have to get the support of .NET SDK Command prompt for install...
Today I am going to explain you a simple and quick way to install a Windows Service in your machine.
First you must write a Windows Service in your preferred language like (C#,VB.NET etc...). Then follow these quick steps.
 
You have to get the support of .NET SDK Command prompt for install the service into your local machine.
1. Call to SDK Command prompt, follow
Start>All Programs>Microsoft .NET Framework SDK v2.0>SDK Command prompt
 
*(this is very much similar to windows command prompt, but windows command prompt cannot understand these instructions)
 
2. Type in the SDK command prompt
installutil C:\MyWebServiceApp\bin\Debug\MyService.exe
this is your application's .exe path.
 
Now your Windows service has successfully installed with Windows Environment. To start that, go to
Start>Run type services.msc and run it.
 
In this services window, find your Windows Service and Write Click on it and select Properties. Set Startup type as Automatic or Manual.
 
Now restart you machine and find your Windows Service by Task Manager. It will display in task manager under running services.
 
I think you got it. Please leave your comment on my tips. It will encourage me. Bye
 

Alternative: after installing the service, use the Service control manager to configure and start it:
in the console window type:
SC Config MyService obj="Account Name" start = (boot|delayed-auto|system|demand|auto|disabled)
to start the servixce type:
SC start MyService

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Unikoon
Founder EdgeCat Infosys
Sri Lanka Sri Lanka
http://edgecat.weebly.com

Comments and Discussions

 
QuestionAfter installing my windows service there is start and stop all options are disabled please any body help PinmemberMember 1005644722-Apr-14 21:50 
General"Installation has failed, Rollback has been successfully" Pinmembercoolnavjot3110-Feb-13 19:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.1411023.1 | Last Updated 21 Jan 2010
Article Copyright 2010 by Unikoon
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid