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

Install Windows Service

By , 21 Jan 2010
 
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)

About the Author

EdgeCat
Founder EdgeCat Infosys
Sri Lanka Sri Lanka
Member
Organisation (No members)

http://edgecat.weebly.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
General"Installation has failed, Rollback has been successfully"membercoolnavjot3110 Feb '13 - 18:25 

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 21 Jan 2010
Article Copyright 2010 by EdgeCat
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid