Introduction:
Here I will explain how to install windows service and how to start the windows service in our local machine.
If
we want to uninstall the installed windows service you just point to
your service same as what I explained previously and type statement
installutil /u and your service name
Here I will explain how to install windows service and how to start the windows service in our local machine.
Description:
In previous article I explained clearly how to create windows service and how to run windows service in scheduled intervals. Now I will explain how to install windows service in our system.
In previous article I explained clearly how to create windows service and how to run windows service in scheduled intervals. Now I will explain how to install windows service in our system.
To install windows service in your follow these steps
Start --> All Programs --> Microsoft Visual Studio 2008 --> Visual Studio Tools --> Open Visual Studio Command Prompt
After open command prompt point to your windowsservice.exe file in your project
Initially in our command prompt we are able to see path like this
C:\Program Files\ Microsoft Visual Studio 9.0\VC >
This
path is relating to our visual studio installation path because during
installation if you give different path this path should be different
now we can move to folder which contains our windowsservice.exe file. After moving to exe file exists path my command prompt like this
After moving to our windowsservice.exe contains folder now type
Installutil windowsservicesample.exe (Give your windows service exe file name) and now press enter button.
After type Installutil windowsservicesample.exe file that would be like this
After that the service will install successfully in your system.
Now
I have question do you have idea on how to see installed windows
services and how to start our windows service if you have idea good
otherwise no need to panic just follow below steps
Start --> Control Panel --> Open Control Panel --> Select Administrative Tools --> Computer Management --> Services and Applications --> Services --> Open services
Now
check for your windows service name and right click on that and select
option start your windows service has started successfully
That would be like this
Installutil /u windowsservicesample.exe
No comments:
Post a Comment