Home arrow Delphi-Kylix arrow Page 4 - Internet Access: Client Service
DELPHI-KYLIX

Internet Access: Client Service


When a workstation is switched on in our Internet cafe we need to have a way of ensuring that the client application, which communicates with the server, is also started. There are two ways of doing this: manually and automatically. You will probably want the application to load automatically. Windows services will let us accomplish this task. Keep reading to find out what they are and how to use them.

Author Info:
By: David Web
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
October 13, 2008
TABLE OF CONTENTS:
  1. · Internet Access: Client Service
  2. · The service application code
  3. · Code Explained
  4. · To Install/Uninstall the service

print this article
SEARCH DEVARTICLES

Internet Access: Client Service - To Install/Uninstall the service
(Page 4 of 4 )

To run the service, open up the command prompt or go to Start|Run and type the following:


iCafeService.exe /install


You will see a confirmation dialog when the service has been successfully installed, or an error message if it failed. It usually fails if you do not have sufficient privileges. If you do not want to see the confirmation dialog, you can add the /silent switch like this:


icafeService.exe /install /silent


To remove the service application you open a command prompt and type:


iCafeService.exe /uninstall


You will see a confirmation dialog when the service has been successfully uninstalled, or an error message if it failed. If you do not want to see the confirmation dialog you can add the /silent switch like this:


iCafeService.exe /uninstall /silent


Since you will have no way of knowing if your service is running (this applies if you have set the interactive property to false) you can check if it is running by going to Control Panel, then into Administration, and then into Services. There you will see a list of services that are currently installed and running. If you do not see your service there AFTER you installed it as shown above, simply press F5 to refresh the list and you will then see an updated list of services.

If you are going to use this application in an Internet café, you will have to install this service on all of the workstations that will be used. But once you have done that, you will not have to worry about starting up the client application. You can simply switch the workstation on and let the service do the rest.

Conclusion

There is a debate about whether using the Onexecute method is better than using the onStartup method. Please check the Delphi help file for further information on the two methods. I’ve not had any problems using the onExecute method so far.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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