Package com.install4j.api
Class ServiceInfo
java.lang.Object
com.install4j.api.ServiceInfo
Provides information about services created with install4j.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isServiceInstalled
(File serviceFile) Checks if a service is installed on Windows.static boolean
isServiceRunning
(File serviceFile) Checks if a services is running.
-
Constructor Details
-
ServiceInfo
public ServiceInfo()
-
-
Method Details
-
isServiceRunning
Checks if a services is running.- Parameters:
serviceFile
- the install4j service executable- Returns:
- true if it is running
-
isServiceInstalled
Checks if a service is installed on Windows.- Parameters:
serviceFile
- the install4j service executable- Returns:
- true if installed
-