Você pode usar o wrapper.exe fornecido no Apache DS para instalar o serviço
Por exemplo,
C:\Program Files (x86)\ApacheDS\bin>wrapper -i ..\conf\wrapper.conf set.INSTANCE_DIRECTORY=..\instances\default set.INSTANCE=default
wrapper | ApacheDS - default installed.
O conjunto completo de opções está disponível executando sem parâmetros.
C:\Program Files (x86)\ApacheDS\bin\wrapper.exe
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Usage:
wrapper <command> <configuration file> [configuration properties] [...]
wrapper <configuration file> [configuration properties] [...]
(<command> implicitly '-c')
wrapper <command>
(<configuration file> implicitly 'wrapper.conf')
wrapper
(<command> implicitly '-c' and <configuration file> 'wrapper.conf')
where <command> can be one of:
-c --console run as a Console application
-t --start starT an NT service
-a --pause pAuse a started NT service
-e --resume rEsume a paused NT service
-p --stop stoP a running NT service
-i --install Install as an NT service
-r --remove Remove as an NT service
-q --query Query the current status of the service
-qs --querysilent Silently Query the current status of the service
-v --version print the wrapper's version information.
-? --help print this help message
<configuration file> is the wrapper.conf to use. Name must be absolute or relat
ive
to the location of wrapper
[configuration properties] are configuration name-value pairs which override val
ues
in wrapper.conf. For example:
wrapper.debug=true