@echo off :: Runs install.bat and captures everything to install_log.txt for support. :: stdin is fed from nul so install.bat's trailing "pause" (and any failure :: pause) cannot silently block behind the redirected output -- otherwise the :: user would see an empty window waiting on a keypress they cannot see. echo Installing and writing a full log to install_log.txt ... echo This can take several minutes. Please wait. call "%~dp0install.bat" < nul > "%~dp0install_log.txt" 2>&1 set "RC=%ERRORLEVEL%" echo. if "%RC%"=="0" ( echo Install finished. Full log: "%~dp0install_log.txt" ) else ( echo Install FAILED with exit code %RC%. Send this file for support: echo "%~dp0install_log.txt" ) echo. pause