diff --git a/build-installer.bat b/build-installer.bat new file mode 100644 index 0000000..4f5d46f --- /dev/null +++ b/build-installer.bat @@ -0,0 +1,26 @@ +@echo off +REM Wrapper pour lancer la creation de l'installeur Inno Setup. +REM Pre-requis : +REM - .NET 8 SDK +REM - Inno Setup 6 (installe par defaut dans C:\Program Files (x86)\Inno Setup 6) +REM +REM Usage : double-clic sur ce fichier, ou en cmd : build-installer.bat +REM +REM Si Inno Setup est installe ailleurs, lance directement le .ps1 : +REM powershell -ExecutionPolicy Bypass -File installer\build-installer.ps1 -ISCC "C:\Chemin\ISCC.exe" + +setlocal +set "SCRIPT_DIR=%~dp0" + +powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%installer\build-installer.ps1" %* +set "EXITCODE=%ERRORLEVEL%" + +echo. +if %EXITCODE% NEQ 0 ( + echo [ECHEC] Le build de l'installeur a echoue avec le code %EXITCODE%. +) else ( + echo [OK] Installeur genere avec succes. +) +echo. +pause +endlocal & exit /b %EXITCODE%