Introducing Windows Services
page 3 of 5
by Uday Denduluri
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 24553/ 46

Creating and Installing a Windows Service with Visual Studio 2005

Creating and installing a windows service is explained step by step.

·         Open Visual Studio 2005

·         Select new project Visual C# - Windows in Project Types and Windows service in the installed templates and click Ok.

·         Write the code for OnStart and OnStop. Build and see that the windows service does not have any errors.

·         Run InstallUtil /i WindowsService.exe in the Visual Studio command prompt. To uninstall we can use InstallUtil /u WindowsService.exe.

·         Open Services.msc and locate the service in the list of the services. Start the service.


View Entire Article

User Comments

Title: good   
Name: junaid.iqbal
Date: 2011-07-02 4:57:04 AM
Comment:
very good start
Title: Good   
Name: Ashok
Date: 2008-09-30 2:10:22 PM
Comment:
very good to start with.
Title: Suggestion   
Name: Everson
Date: 2008-06-13 8:49:11 AM
Comment:
Post here a draw of tipical windows service and then explain the theory about it.
Title: Well   
Name: Nitin Tiwari
Date: 2008-01-23 8:26:18 AM
Comment:
this is good for starting..
H T
Title: good article   
Name: good article
Date: 2007-10-04 2:56:56 AM
Comment:
Nice aricle
Title: depsre articol   
Name: OMU
Date: 2007-07-02 6:58:51 AM
Comment:
a good quick introduction to Widows Services

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-23 1:30:10 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search