Note: this advanced option screen is reachable by selecting the "Executable" step and choosing "Service options" from the Advanced options popup menu or by clicking directly on the index.
In this step of the exe4j wizard, you define further options for Windows service executables. All options on this screen will only be enabled if the selected executable type in the executable step is "Service".
![]() |
Windows services are installed by passing /install to the
generated service executable. The default start mode of the service can be determined
in this step:
/uninstall to the
generated service executable. All command line switches also work with a prefixed dash
instead of a slash (like -uninstall ) or two prefixed dashes
(like --uninstall ).
To start or stop the service, the
As a second parameter after the
|
![]() |
For debugging purposes, you may want to run the executable on the command line without starting it as a service.
This can be done with the /run parameter. In that case, all output will be printed on the
console. If you want to keep the redirection settings, use the /run-redirect parameter instead.
|
![]() |
If your service depends on another service, say a database, you can enter the
service name of the other service in the dependencies text field.
You do not have to enter core OS services such as filesystem or network,
these services will always be initialized before your service is launched.
If you have dependencies on multiple services, you can enter a list of these service
names separated by commas.
|