service::is-installed

Returns a value indicating whether the specified service is installed on a given machine.

Usage

bool service::is-installed(service, machineName)

Parameters

Name Type Description
service string The short name that identifies the service to the system.
machineName string The computer on which the service resides.

Return Value

true if the service is installed; otherwise, false.

Remarks

For the machineName parameter, you can use "." or a zero-length String to represent the local computer.

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.85.2479.0)