Обновление диагностики (#16659)

This commit is contained in:
Funsy
2026-08-23 18:51:33 +03:00
committed by GitHub
parent e5fde17b08
commit fcfc3c7cb0
+24
View File
@@ -413,6 +413,10 @@ goto menu
chcp 437 > nul chcp 437 > nul
cls cls
:: Zapret path
call :PrintGreen "Zapret is installed in: '%~dp0'"
echo:
:: Base Filtering Engine :: Base Filtering Engine
sc query BFE | findstr /I "RUNNING" > nul sc query BFE | findstr /I "RUNNING" > nul
if !errorlevel!==0 ( if !errorlevel!==0 (
@@ -517,6 +521,26 @@ if !errorlevel!==0 (
) )
echo: echo:
:: Cyrillic path
powershell -NoProfile -Command "if ('%~dp0' -match '[\u0430-\u044F\u0410-\u042F\u0451\u0401]') { exit 0 } else { exit 1 }"
if !errorlevel!==0 (
call :PrintYellow "[?] The path where Zapret is installed contains Cyrillic characters"
call :PrintYellow "If bypass doesn't work, try to move Zapret to another directory, for example in C:\zapret"
) else (
call :PrintGreen "Cyrillic path check passed"
)
echo:
:: OneDrive
echo %~dp0\ | findstr /I /C:"%OneDrive%\\" > nul
if !errorlevel!==0 (
call :PrintRed "[X] Zapret is installed in a OneDrive folder"
call :PrintRed "If bypass doesn't work, try to move Zapret to another directory, for example in C:\zapret"
) else (
call :PrintGreen "OneDrive check passed"
)
echo:
:: WinDivert64.sys file :: WinDivert64.sys file
set "BIN_PATH=%~dp0bin\" set "BIN_PATH=%~dp0bin\"
if not exist "%BIN_PATH%\*.sys" ( if not exist "%BIN_PATH%\*.sys" (