Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 4 - Creating a Windows Service in Delphi
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Creating a Windows Service in Delphi
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 77
    2006-02-08

    Table of Contents:
  • Creating a Windows Service in Delphi
  • Let’s Create a Service
  • The Code
  • Installing/Uninstalling the Service
  • Entire Code for the Service Application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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.

    More Delphi-Kylix Articles
    More By Jacques Noah


       · Good article! This would help me get started in writing Services together with Indy...
       · I've provided the entire program in a zip archive for donwload. Enjoy!
       · i' very grateful to you, if u send me sample windows service application in...
       · Good Enough for me to start with servicesThanks.A little bit of more complicated...
       · Very good article, it was looking for this days ago!!!,...
       · It's so much easier creating a service in Delphi than in VB which makes me love...
     

    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...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek