Home arrow Delphi-Kylix arrow Page 4 - Creating a Windows Service in Delphi
DELPHI-KYLIX

Creating a Windows Service in Delphi


Service applications let you check for updates on a system or monitor system resources, without interrupting your work. While they can be difficult to create, Delphi makes it simple. This article explains how to create a simple Windows service application in Delphi, which you can build on and modify to suit your own needs.

Author Info:
By: Jacques Noah
Rating: 5 stars5 stars5 stars5 stars5 stars / 93
February 08, 2006
TABLE OF CONTENTS:
  1. · Creating a Windows Service in Delphi
  2. · Let’s Create a Service
  3. · The Code
  4. · Installing/Uninstalling the Service
  5. · Entire Code for the Service Application

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Creating a Windows Service in Delphi - Installing/Uninstalling the Service
(Page 4 of 5 )

To install the service: Click Start and select run, then type: PATHTOYOURSERVICE\yourservicename.exe /INSTALL then press OK.

If your service is located in a directory called service on the c drive, then type c:\service\yourservicename.exe. The same thing applies when you uninstall.

To uninstall: Click on Start and select run, then type: PATHTOYOURSERVICE\yourservicename.exe /UNINSTALL then press OK.

To check whether your service is running, open up the TASK Manager and look for the service name.

The service I created is called diskmonitor.exe. Here’s an example of my Task Manager showing the simple DiskMonitor.exe service:

So, as you can see, Delphi makes it very easy to create a service. Although my example is trivial, you can create very complicated applications. Just remember that the bigger your service application is, the more resources it will consume.


blog comments powered by Disqus
DELPHI-KYLIX ARTICLES

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials