diff --git a/service.bat b/service.bat index bf8685e..538c8fb 100644 --- a/service.bat +++ b/service.bat @@ -9,6 +9,8 @@ if "%~1"=="status_zapret" ( ) if "%~1"=="check_updates" ( + if defined NO_UPDATE_CHECK exit /b + if exist "%~dp0utils\check_updates.enabled" ( if not "%~2"=="soft" ( start /b service check_updates soft diff --git a/utils/test zapret.ps1 b/utils/test zapret.ps1 index 37742cf..abf29bc 100644 --- a/utils/test zapret.ps1 +++ b/utils/test zapret.ps1 @@ -593,6 +593,7 @@ function Restore-WinwsSnapshot { } } +$env:NO_UPDATE_CHECK = "1" $originalWinws = Get-WinwsSnapshot Write-Host ""