From 0f774c3a5d3db795fa4a11be963fab711e12155c Mon Sep 17 00:00:00 2001 From: Jules Dubois Date: Tue, 23 Jun 2026 09:40:02 +0200 Subject: [PATCH] install.bat: empecher la fenetre de se fermer silencieusement - Wrapper cmd /k pour garder la fenetre ouverte en cas de crash - pause avant exit dans le menu Quitter Co-Authored-By: Claude Opus 4.6 --- acrobat-plugin/install.bat | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/acrobat-plugin/install.bat b/acrobat-plugin/install.bat index f831c32..e8e78f5 100644 --- a/acrobat-plugin/install.bat +++ b/acrobat-plugin/install.bat @@ -3,6 +3,12 @@ chcp 65001 >nul 2>&1 setlocal EnableDelayedExpansion title Copydev Imposition Tool — Installation +:: Si le script plante ou sort anormalement, la fenetre reste ouverte +if "%~1" neq "__started__" ( + cmd /k "%~f0" __started__ %* + exit /b +) + set "APP_NAME=Copydev Imposition Tool" set "INSTALL_DIR=%LOCALAPPDATA%\CopydevImposingAcrobat" set "REPO_DIR=%INSTALL_DIR%\repo" @@ -447,6 +453,8 @@ goto MENU :: ============================================================ :FIN +echo. echo Au revoir ! -timeout /t 2 >nul +echo. +pause exit /b 0