Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

How to install windows service ?

Thanks
Posted

 
Share this answer
 
Comments
Manas Bhardwaj 28-Aug-12 8:34am    
+5
Mohamed Mitwalli 28-Aug-12 8:43am    
Thanks Manas :)
 
Share this answer
 
Comments
Manas Bhardwaj 28-Aug-12 8:34am    
+5
 
Share this answer
 
Comments
Manas Bhardwaj 28-Aug-12 8:34am    
Good links. 5!
Few basic tips related to Windows Service

Installation

Open Visual Studio Command Prompt(Start>All Programs > Vistal Studio 20xx > Visual Studio Tools > Visual Studio Command Prompt.
Type in the following at command prompt to install the service

C#
installutil "C:\Folder1\Folder2\Yourservice.exe"


Uninstallation

Open Visual Studio Command Prompt(Start>All Programs > Vistal Studio 20xx > Visual Studio Tools > Visual Studio Command Prompt.
Type in the following at command prompt to uninstall the service.

C#
installutil /u "C:\Folder1\Folder2\Yourservice.exe"


Start/stop Windows Service

Open Command Prompt(Start>Run type in cmd will launch Command Prompt).
Next
Start the Service

C#
net start Yourservicename


Stop service

C#
net stop Yourservicename
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900