Class RegisterWindowsService

    • Constructor Detail

      • RegisterWindowsService

        public RegisterWindowsService()
    • 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.