@echo off
REM Setăm calea către Python
set PYTHON_PATH=C:\Python312\python.exe

REM Creăm serviciul DaisyPracticPos cu nssm
"{app_nssm}\nssm.exe" install DaisyPracticPos "%PYTHON_PATH%"

REM Setăm directorul de lucru (startup directory)
"{app_nssm}\nssm.exe" set DaisyPracticPos AppDirectory "{app_driver_dprint}"

REM Setăm argumentele (scriptul Python de rulare)
"{app_nssm}\nssm.exe" set DaisyPracticPos AppParameters "{app_driver_dprint}\DPrint.py"

REM Setăm variabilele de mediu
"{app_nssm}\nssm.exe" set DaisyPracticPos AppEnvironmentExtra "PYTHONUNBUFFERED=1 PYTHONUTF8=1"

REM Pornește serviciul
"{app_nssm}\nssm.exe" start DaisyPracticPos

exit
