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 <path>` overrides. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
811 B
Batchfile
27 lines
811 B
Batchfile
@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%
|