From 13444ab3888d29a2487c9d507fa43fa57411d34d Mon Sep 17 00:00:00 2001 From: Dronatar <35381259+Dronatar@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:45:20 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=BE=20=D1=82=D0=BE=D0=BC,=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BA=D0=BE=D0=B9=20=D1=84=D0=B0=D0=B9=D0=BB=20=D0=B1?= =?UTF-8?q?=D1=8B=D0=BB=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D0=BE=D0=BC?= =?UTF-8?q?=20(#3890)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit information about which file was installed by the service --- service.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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