check for acrhive extraction

This commit is contained in:
Flowseal
2025-12-25 16:02:48 +03:00
parent 651342d06f
commit 528b707bab

View File

@@ -33,7 +33,9 @@ if "%1"=="admin" (
echo Started with admin rights
) else (
call :check_extracted
call :check_command powershell
echo Requesting admin rights...
powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs"
exit
@@ -860,3 +862,15 @@ if %errorLevel% neq 0 (
exit /b 1
)
exit /b 0
:check_extracted
set "extracted=1"
if not exist "%~dp0bin\" set "extracted=0"
if "%extracted%"=="0" (
call :PrintRed "Zapret must be extracted from archive first"
pause
exit
)
exit /b 0