@echo off chcp 936 >nul echo ======================================== echo PackagingMallShipper - Build Installer echo ======================================== echo. set "ISCC=" if exist "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" ( set "ISCC=C:\Program Files (x86)\Inno Setup 6\ISCC.exe" ) if exist "C:\Program Files\Inno Setup 6\ISCC.exe" ( set "ISCC=C:\Program Files\Inno Setup 6\ISCC.exe" ) if "%ISCC%"=="" ( echo [Error] Inno Setup 6 not found echo. echo Please download and install Inno Setup 6: echo https://jrsoftware.org/isdl.php echo. pause exit /b 1 ) echo [Info] Found Inno Setup: %ISCC% echo. if not exist "publish\PackagingMallShipper.exe" ( echo [Error] publish\PackagingMallShipper.exe not found echo. echo Please build Release version first: echo dotnet build -c Release echo. pause exit /b 1 ) echo [Info] Compiling installer... echo. "%ISCC%" setup.iss if %ERRORLEVEL% EQU 0 ( echo. echo ======================================== echo [Success] Installer created! echo. echo Location: installer\PackagingMallShipper_Setup_v1.0.0.exe echo ======================================== echo. if exist "installer" explorer "installer" ) else ( echo. echo [Error] Build failed, error code: %ERRORLEVEL% ) pause