Files
PS_Launcher/build-installer.bat
j.foucher c706d09e72 Drop legacy PSLauncher.exe backward compat (not in prod yet)
Simplifies the rename done in ce3979d : PS_Launcher.exe is the only
name. Removes the dual-path lookup in LauncherSelfUpdater, the
duplicated taskkill blocks in the .bat scripts, the legacy patterns
in .gitignore, and the explanatory comments about the migration.

Cleaner code, single source of truth for the binary name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:08:23 +02:00

31 lines
995 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"
REM Termine les eventuelles instances en cours qui verrouilleraient les .exe
taskkill /F /IM PS_Launcher.exe /T >nul 2>&1
taskkill /F /IM PS_Launcher.Updater.exe /T >nul 2>&1
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%