mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-12-10 05:19:45 +05:00
Информация о том, какой файл был установлен сервисом (#3890)
information about which file was installed by the service
This commit is contained in:
@@ -65,6 +65,7 @@ cls
|
|||||||
chcp 437 > nul
|
chcp 437 > nul
|
||||||
echo Checking services and tasks...
|
echo Checking services and tasks...
|
||||||
call :test_service zapret
|
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
|
call :test_service WinDivert
|
||||||
|
|
||||||
tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul
|
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 create %SRVCNAME% binPath= "\"%BIN_PATH%winws.exe\" %ARGS%" DisplayName= "zapret" start= auto
|
||||||
sc description %SRVCNAME% "Zapret DPI bypass software"
|
sc description %SRVCNAME% "Zapret DPI bypass software"
|
||||||
sc start %SRVCNAME%
|
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
|
pause
|
||||||
goto menu
|
goto menu
|
||||||
|
|||||||
Reference in New Issue
Block a user