Works when started over CMD but not over Windows Service

Hello dear,

When i start EMQX over cmd like .\emqx start it works perfectly. Then i can also stop it.

When i install it as a Windows Service with .\emqx install, it installs and starts perfectly (the Windows Service); but it doesn’t work in background i can not reach localhost:18083 for example and my software could not connect to the MQTT. Do you have an idea why ?

Thanks a lot in advance.

2023-09-25T10:04:02.799000+02:00 [warning] msg: failed_to_resolve_env_variable, mfa: emqx_schema:naive_env_interpolation/1, line: 3238, env: {EMQX_LOG_DIR}, original: ${EMQX_LOG_DIR}/emqx.log
2023-09-25T10:04:02.871000+02:00 [warning] msg: failed_to_resolve_env_variable, mfa: emqx_schema:naive_env_interpolation/1, line: 3238, env: {EMQX_ETC_DIR}, original: ${EMQX_ETC_DIR}/acl.conf
2023-09-25T10:04:02.871000+02:00 [alert] msg: failed_to_read_acl_file, mfa: emqx_authz_file:validate/1, line: 53, explain: No such file or directory, path: ${EMQX_ETC_DIR}/acl.conf
2023-09-25T10:04:02.873000+02:00 [warning] msg: failed_to_resolve_env_variable, mfa: emqx_schema:naive_env_interpolation/1, line: 3238, env: {EMQX_LOG_DIR}, original: ${EMQX_LOG_DIR}/emqx.log
2023-09-25T10:04:02.890000+02:00 [error] crasher: initial call: application_master:init/4, pid: <0.618.0>, registered_name: [], exit: {{bad_return,{{emqx_conf_app,start,[normal,[]]},{'EXIT',{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,"emqx_config_logger.erl"},{line,129}]},{emqx_config_logger,tr_handlers,1,[{file,"emqx_config_logger.erl"},{line,124}]},{emqx_config_logger,do_refresh_config,1,[{file,"emqx_config_logger.erl"},{line,48}]},{emqx_conf_app,start,2,[{file,"emqx_conf_app.erl"},{line,40}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}, ancestors: [<0.617.0>], message_queue_len: 1, messages: [{'EXIT',<0.619.0>,normal}], links: [<0.617.0>,<0.44.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 28, reductions: 190; neighbours: