Click here to Skip to main content
12,241,419 members (57,610 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

68.2K views
10 bookmarked
Posted

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 Systems
Founder EdgeCat Infosys
Sri Lanka Sri Lanka
http://edgecat.weebly.com

You may also be interested in...

Comments and Discussions

 
Questionnice work Pin
Member 1039122722-Sep-15 21:12
memberMember 1039122722-Sep-15 21:12 
GeneralMy vote of 3 Pin
bejituharo24-Jun-15 0:03
memberbejituharo24-Jun-15 0:03 
Questionwindows service Instalation Pin
shilpavV4421-Jan-15 9:20
membershilpavV4421-Jan-15 9:20 
QuestionAfter installing my windows service there is start and stop all options are disabled please any body help Pin
Member 1005644722-Apr-14 21:50
memberMember 1005644722-Apr-14 21:50 
General"Installation has failed, Rollback has been successfully" Pin
coolnavjot3110-Feb-13 19:25
membercoolnavjot3110-Feb-13 19:25 
GeneralRe: "Installation has failed, Rollback has been successfully" Pin
Unikoon2-Jul-15 21:56
groupUnikoon2-Jul-15 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.160426.1 | Last Updated 21 Jan 2010
Article Copyright 2010 by Unikoon Systems
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid