From 3da0696c23ed466f33f783c5a207919d4cf7818f Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Sat, 2 May 2026 09:53:01 +0200 Subject: [PATCH] Add build-installer.bat at repo root for one-click installer build Wraps installer/build-installer.ps1 with -NoProfile and -ExecutionPolicy Bypass so a double-click works without PowerShell config tweaks. Pauses at the end so the user sees the ISCC output even when launched from Explorer. Forwards %* for `-ISCC ` overrides. Co-Authored-By: Claude Opus 4.7 (1M context) --- build-installer.bat | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 build-installer.bat 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%