install-service.bat revision 4ba1b3760f8db83c4cb7799d6fd8a733470862ce
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsrem @echo off
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsset "EXECUTABLE=%cd%\launcher.bat"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsrem Check that target executable exists
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsif exist "%EXECUTABLE%" goto execOK
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsecho Cannot find "%EXECUTABLE%"
3398334b3acda24b086957286288ca9852662b12Automatic Updaterecho This file is needed to run this program
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsrem Get remaining unshifted command line arguments and save them in the
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsset CMD_LINE_ARGS=
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsif ""%1""=="""" goto doneSetArgs
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsset CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsrem set SERVER_START_PARAMS="-c;bin/launcher.json"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsset JAVA_OPTS_SERVICE=-Xmx1024m;-Xms1024m;-Djava.util.logging.config.file=conf\logging.properties;-Dlogback.configurationFile=conf\logging-config.xml;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsrem Enable debugging uncomment the line below
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsset JAVA_OPTS_SERVICE=%JAVA_OPTS_SERVICE%-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewscall "%EXECUTABLE%" /install %CMD_LINE_ARGS%