Move variables to env.cmd

This commit is contained in:
2025-01-19 15:53:11 +01:00
parent 281b3ce27d
commit 683095b6d7
2 changed files with 3 additions and 7 deletions

View File

@@ -19,10 +19,7 @@ if !%2==! goto help
set BESZELKEYPREFIX=%1
set BESZELKEY=%2
set SERVICENAME=BeszelAgent
set DESTINATIONDIR=%ProgramFiles%\%SERVICENAME%
set AGENTEXE=%DESTINATIONDIR%\agent.exe
set NSSMEXE=nssm.exe
call env.cmd
where nssm.exe >nul 2>&1
if %errorlevel% NEQ 0 goto installnssm