diff --git a/service.bat b/service.bat index d5a3f73..a51a29a 100644 --- a/service.bat +++ b/service.bat @@ -65,6 +65,7 @@ cls chcp 437 > nul echo Checking services and tasks... call :test_service zapret +for /f "tokens=3*" %%A in ('reg query "HKLM\System\CurrentControlSet\Services\zapret" /v zapret-discord-youtube 2^>nul') do echo service strategy installed from "%%A %%B" call :test_service WinDivert tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul @@ -240,6 +241,10 @@ sc delete %SRVCNAME% >nul 2>&1 sc create %SRVCNAME% binPath= "\"%BIN_PATH%winws.exe\" %ARGS%" DisplayName= "zapret" start= auto sc description %SRVCNAME% "Zapret DPI bypass software" sc start %SRVCNAME% +for %%F in ("!file%choice%!") do ( + set "filename=%%~nF" +) +reg add "HKLM\System\CurrentControlSet\Services\zapret" /v zapret-discord-youtube /t REG_SZ /d "!filename!" /f pause goto menu @@ -548,4 +553,4 @@ exit /b :PrintYellow powershell -Command "Write-Host \"%~1\" -ForegroundColor Yellow" -exit /b \ No newline at end of file +exit /b