- Make sure to set JBOSS_HOME as a system environment variable pointing to the JBoss installation directory
- Add a system environment variable NOPAUSE=1
Alternatively edit the last line of both standalone.bat (domain.bat) / jboss-cli.bat
and remove this line:
if "x%NOPAUSE%" == "x" pause
- Open a cmd.exe window
- execute a “
(not needed if you open the cmd.exe after you have added the system env. var)
- Installing the service, enter the below on one line:
- You should now have a service installed that you can manually start/stop from the Services window.
Set to automatic is so required.
Should you need to remove the service, use this: