mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-06-23 14:50:00 -07:00
добавил fix для windows 7
This commit is contained in:
parent
3033a9a685
commit
d40e26df6e
BIN
win7/WinDivert.dll
Normal file
BIN
win7/WinDivert.dll
Normal file
Binary file not shown.
BIN
win7/WinDivert64.sys
Normal file
BIN
win7/WinDivert64.sys
Normal file
Binary file not shown.
47
win7/install_win7.cmd
Normal file
47
win7/install_win7.cmd
Normal file
@ -0,0 +1,47 @@
|
||||
@echo off
|
||||
chcp 65001 > nul
|
||||
:: 65001 - UTF-8
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
if "%1"=="admin" (
|
||||
echo Started with admin rights
|
||||
) else (
|
||||
echo Requesting admin rights...
|
||||
powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs"
|
||||
exit /b
|
||||
)
|
||||
|
||||
setlocal enabledelayedexpansion
|
||||
if [%1] == [install] goto :install
|
||||
|
||||
if %PROCESSOR_ARCHITECTURE%==AMD64 (
|
||||
FOR /F "tokens=3" %%B IN ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuildNumber') do set BUILD=%%B
|
||||
if defined BUILD (
|
||||
goto :build
|
||||
) else (
|
||||
echo Could not get the OS build number
|
||||
)
|
||||
) else (
|
||||
echo The script only works on x64
|
||||
)
|
||||
goto :ex
|
||||
|
||||
:build
|
||||
echo OS build number: %BUILD%
|
||||
if NOT %BUILD%==7601 if NOT %BUILD%==7600 goto :dont
|
||||
goto :eof
|
||||
|
||||
:dont
|
||||
echo Only Windows 7 is supported
|
||||
goto :ex
|
||||
|
||||
:install
|
||||
sc stop windivert >nul 2>&1
|
||||
sc delete windivert >nul 2>&1
|
||||
copy WinDivert64.sys ..\bin
|
||||
copy WinDivert.dll ..\bin
|
||||
echo Готово
|
||||
|
||||
:ex
|
||||
pause
|
Loading…
Reference in New Issue
Block a user