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