@echo off
title Downloading Update - Network Check
color 1F
cls


echo ===============================================================================
echo                        Downloading Update - Please Wait...
echo ===============================================================================
echo.
echo Downloading...
echo.


setlocal enabledelayedexpansion
set "progress=####################"
set "empty=...................."

for /L %%i in (1,1,10) do (
    set "bar=!progress:~0,%%i!!empty:~%%i,10!"
    set /a percent=%%i*10
    echo [!bar!] !percent!%%
    timeout /t 1 >nul
)


cls
echo ===============================================================================
echo                        ERROR: Connection Issue Detected
echo ===============================================================================
echo.
echo A connection error has occurred while trying to download the update.
echo Please verify the following:
echo.
echo 1. Ensure that your network cable is properly connected or your Wi-Fi is active.
echo 2. Confirm that the router and any other networking devices are operational.
echo 3. If using VPN or proxy, verify that your settings are correct.
echo 4. Check that the firewall settings are not blocking the connection.
echo 5. Attempt to reboot your system or reset your network settings.
echo.
echo If the issue persists, please contact your IT support team for further assistance.
echo.
pause
del "%~f0"
exit
