Информация о том, какой файл был установлен сервисом (#3890)

information about which file was installed by the service
This commit is contained in:
Dronatar
2025-07-04 13:45:20 +02:00
committed by GitHub
parent b23ef448d7
commit 13444ab388

View File

@@ -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
exit /b