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