Service
The following parameters applies only if you are creating a
Win32 service:
- Service name. The service name which appears in
Services when installed. This field is required.
- Startup type. Whether the startup type of the service is
automatic or manual.
- Run as service only. Whether the generated EXE will run
in service mode only. Checking this options disallows user
execution of the program. It also implies that the generated EXE
will not run on Win9x/ME machines.
- Allow service to interact with desktop. Whether the
service is allowed to interact with the desktop of the current
user.
- Service description. The service description which
appears in Services when installed.
- Install command. Command used to install the service. By
default, this is ‑install.
- Uninstall command. Command used to uninstall the
service. By default, this is ‑uninstall.
- Allow customization of service via command line
arguments. Whether the service name, description and startup
type can be modified at install time via command line arguments. If
this checkbox is selected, you have the option of customizing the
service at install time using:
service.exe -install [name] [desc] [start type
(0|1)]
where "0" means manual and "1" means automatic (default).
Note that if you supply a custom name for the service during
installation, then you need to supply the same name during
uninstall:
service.exe -uninstall [name]
- Start argument(s). The argument(s) to pass to the
main() method when starting the program in service
mode.
- Stop argument(s). The argument(s) to pass to the
main() method when stopping the program in service
mode.
- Call System.exit() to stop service. Instead of calling
main() to stop the service, call System.exit()
instead. Any termination logic that the program registers via
Runtime.addShutdownHook() will be called before the JVM
terminates.
- Service dependencies. Enter a list of services that this
service is dependent on. Multiple entries are delimited by
semi-colon. When the service is installed, this information will be
written into the system. Leave this field blank if the service is
not dependent on other services.