@echo off setlocal title INTERACTOVA - Install read-aloud languages cd /d "%~dp0" net session >nul 2>&1 if %errorLevel% neq 0 ( echo. echo ============================================================ echo INTERACTOVA - Voice / language installer echo ============================================================ echo. echo Next, Windows will ask for Administrator permission. echo Choose Yes so languages can be installed. echo. echo A blue PowerShell window will open and stay open until you press Enter. echo. pause powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -LiteralPath '%~f0' -Verb RunAs" timeout /t 2 >nul exit /b 0 ) if not exist "%~dp0install-read-aloud-voices.ps1" ( echo. echo ERROR: install-read-aloud-voices.ps1 was not found in this folder: echo %~dp0 echo. echo Keep INSTALL-VOICES.bat and install-read-aloud-voices.ps1 in the same folder. pause exit /b 1 ) echo. echo Running language installer (this may take several minutes)... echo. powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-read-aloud-voices.ps1" set ERR=%errorLevel% echo. if %ERR% neq 0 echo PowerShell reported exit code %ERR%. echo You can close this window. pause exit /b 0