Method ServiceController():install() Foundation

Install the service with the specified name.

Syntax
:install( <cName> ) --> lSuccess
Parameters
<cName>
The name of the service to install.
Return

This class method calls the instance method :logSuccess() and returns .T. (true) if the service is successfully installed. Otherwise it calls the instance method :logError() and and .F. (false).

Description

This class method installs a service on the system using the information passed to the class method :addController().

When this method is successful, the corresponding service can be inspected by the class methods :queryAllServiceNames() and :getUpdatedControl(). Additionally the service may be inspected with the service tools that are part of the operating system.

The service is now prepared to be controlled. It can be started, stopped and paused.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.