ServiceInfo (install4j API)
Description: declaration: package: com.install4j.api, class: ServiceInfo

# Class ServiceInfo

java.lang.Object
com.install4j.api.ServiceInfo

public class ServiceInfo extends Object
Provides information about services created with install4j.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServiceInfo()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `isServiceInstalled(File serviceFile)`
  Checks if a service is installed.
  `static boolean`
  `isServiceRunning(File serviceFile)`
  Checks if a service is running.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ServiceInfo

    public ServiceInfo()

- ## Method Details

  - ### isServiceRunning

    public static boolean isServiceRunning(File serviceFile)
    Checks if a service is running.
    Parameters:
      `serviceFile` - the install4j service executable
    Returns:
      true if it is running

  - ### isServiceInstalled

    public static boolean isServiceInstalled(File serviceFile)
    Checks if a service is installed.
    Parameters:
      `serviceFile` - the install4j service executable
    Returns:
      true if installed