Files
my-botty/run_install_capture.bat
alexpolo1 7cb15837d4 fix(install): window closed instantly on success, hiding the result
install.bat had 9 pause statements on failure paths and none on the
success path. The README tells users to double-click install.bat, so on a
successful install the console vanished the moment it finished -- a new
user never saw "Installation complete", the OCR verdict, or the dependency
verification, and had no way to tell whether it had worked.

Added pause to the success path.

run_install_capture.bat redirects stdout to install_log.txt, so that new
pause would have blocked behind the redirect: an empty window silently
waiting on a keypress the user cannot see. It now feeds stdin from nul,
reports success/failure with the log path, and pauses itself.

Verified non-interactive: run_install_capture.bat completes in ~28s with
exit 0 and no hang.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-06 21:22:36 +02:00

19 lines
719 B
Batchfile

@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