From 0f92352b7a3ef2bbec571c3bf2457baa1d3f8017 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sat, 28 May 2016 08:24:04 -0400 Subject: install and start release in Windows 7/XP I am submitting this on behalf of @povloid in https://github.com/erlang/rebar3/issues/1183 who had the following to say: the set is not work into `@if` block, in this case the vareables args, start_erl and description is empty. If we move this strings out of `@if` block, the script work correctly. --- priv/templates/extended_bin_windows | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 7adff36..159bace 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -142,11 +142,11 @@ :: Install the release as a Windows service :: or install the specified version passed as argument :install +set args=%erl_opts% -setcookie %cookie% ++ -rootdir \"%rootdir%\" +set start_erl=%erts_dir%\bin\start_erl.exe +set description=Erlang node %node_name% in %rootdir% @if "" == "%2" ( :: Install the service - set args=%erl_opts% -setcookie %cookie% ++ -rootdir \"%rootdir%\" - set start_erl=%erts_dir%\bin\start_erl.exe - set description=Erlang node %node_name% in %rootdir% %erlsrv% add %service_name% %node_type% "%node_name%" -c "%description%" ^ -w "%rootdir%" -m "%start_erl%" -args "%args%" ^ -stopaction "init:stop()." -- cgit v1.2.3