:: ------------------------------------------------------------ :: Installiere Notepad++ :: ------------------------------------------------------------ :: --- Option: Download in ein temporäres Verzeichnis :: --- Kann für z.B. für GLPI abgeschaltet werden set SAVEPATH=%SYSTEMDRIVE%\TEMP\install MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH% :: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/latest set VERS=8.9.6.2 set BASEURL=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%VERS% set PROG=npp.%VERS%.Installer.x64.exe :: --- Lade Datei herunter echo Starte Download. curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!) :: --- Deinstalliere alte Version if exist "%%programfiles%%\Notepad++\uninstall.exe" "%%programfiles%%\Notepad++\uninstall.exe" /S if exist "%%programfiles(x86)%%\ Notepad++\uninstall.exe" "%%programfiles(x86)%%\Notepad++\uninstall.exe" /S :: --- Silent-Installation des Programms: echo Starte Installation. %PROG% /S /noUpdater if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)