Class RegisterWindowsService
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.RegisterWindowsService
-
- All Implemented Interfaces:
OSHostable
,Referenceable
public final class RegisterWindowsService extends Action implements OSHostable
Registers a Windows Service on the end user's system.
-
-
Constructor Summary
Constructors Constructor Description RegisterWindowsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAllowGUI()
Whether allow the service to show GUI.java.lang.String
getExistingFile()
The path of the existing executable which this action should register as a service.java.lang.String
getServiceDescription()
The service description.java.lang.String
getServiceName()
The service name.java.lang.String
getServiceShortName()
The service short name.boolean
getStartAutomatically()
Whether the start the service automatically at system startup.FileAction
getTargetAction()
The installed executable which this action should register as a service.boolean
getUseInstalledExecutable()
Whether to use an installed executable instead of an existing executable in the end user's machine.void
setAllowGUI(boolean gui)
Whether allow the service to show GUI.void
setExistingFile(java.lang.String path)
The path of the existing executable which this action should register as a service.void
setServiceDescription(java.lang.String serviceDescription)
The service description.void
setServiceName(java.lang.String name)
The service name.void
setServiceShortName(java.lang.String name)
The service short name.void
setStartAutomatically(boolean automatic)
Whether the start the service automatically at system startup.void
setTargetAction(FileAction target)
The installed executable which this action should register as a service.void
setUseInstalledExecutable(boolean useInstalled)
Whether to use an installed executable instead of an existing executable in the end user's machine.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setServiceName
public void setServiceName(java.lang.String name)
The service name.
-
getServiceName
public java.lang.String getServiceName()
The service name.
-
setServiceShortName
public void setServiceShortName(java.lang.String name)
The service short name.
-
getServiceShortName
public java.lang.String getServiceShortName()
The service short name.
-
setUseInstalledExecutable
public void setUseInstalledExecutable(boolean useInstalled)
Whether to use an installed executable instead of an existing executable in the end user's machine.
-
getUseInstalledExecutable
public boolean getUseInstalledExecutable()
Whether to use an installed executable instead of an existing executable in the end user's machine.
-
setExistingFile
public void setExistingFile(java.lang.String path)
The path of the existing executable which this action should register as a service. The useInstalledFile property should be set to false.
-
getExistingFile
public java.lang.String getExistingFile()
The path of the existing executable which this action should register as a service.
-
setTargetAction
public void setTargetAction(FileAction target)
The installed executable which this action should register as a service. The useInstalledFile property should be set to true.
-
getTargetAction
public FileAction getTargetAction()
The installed executable which this action should register as a service.
-
setStartAutomatically
public void setStartAutomatically(boolean automatic)
Whether the start the service automatically at system startup.
-
getStartAutomatically
public boolean getStartAutomatically()
Whether the start the service automatically at system startup.
-
setAllowGUI
public void setAllowGUI(boolean gui)
Whether allow the service to show GUI.
-
getAllowGUI
public boolean getAllowGUI()
Whether allow the service to show GUI.
-
getServiceDescription
public java.lang.String getServiceDescription()
The service description.
-
setServiceDescription
public void setServiceDescription(java.lang.String serviceDescription)
The service description.
-
-