diff options
author | Fred Hebert <[email protected]> | 2016-05-28 08:24:04 -0400 |
---|---|---|
committer | Fred Hebert <[email protected]> | 2016-05-28 08:24:04 -0400 |
commit | 0f92352b7a3ef2bbec571c3bf2457baa1d3f8017 (patch) | |
tree | 75234968907c513832ff2fb4811ac6bb503cecdc | |
parent | 5cb85fa9d1fdb5988faf178676fd36a0c2829a9d (diff) | |
download | relx-0f92352b7a3ef2bbec571c3bf2457baa1d3f8017.tar.gz relx-0f92352b7a3ef2bbec571c3bf2457baa1d3f8017.tar.bz2 relx-0f92352b7a3ef2bbec571c3bf2457baa1d3f8017.zip |
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.
-rw-r--r-- | priv/templates/extended_bin_windows | 6 |
1 files 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()." |