@echo off setlocal cd /d "%~dp0" echo ======================================== echo ZhenAI Customer Service Installer echo ======================================== echo. echo Building the application and installer. Please wait... echo. powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0build_installer.ps1" set "BUILD_EXIT_CODE=%ERRORLEVEL%" echo. if not "%BUILD_EXIT_CODE%"=="0" goto build_failed echo Installer completed successfully. echo Output folder: %~dp0dist\installer start "" explorer.exe "%~dp0dist\installer" echo. pause exit /b 0 :build_failed echo Installer build failed. Please check the error above. echo. pause exit /b %BUILD_EXIT_CODE%