Update von AE übernommen...
This commit is contained in:
+27
-22
@@ -1,22 +1,27 @@
|
||||
:: ------------------------------------------------------------
|
||||
:: 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% & CD /D %SAVEPATH%
|
||||
|
||||
set VERS=8.8.5
|
||||
set BASEURL=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%VERS%
|
||||
set PROG=npp.%VERS%.Installer.exe
|
||||
|
||||
curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
|
||||
:: --- 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
|
||||
|
||||
:: --- Installiere Notepad++
|
||||
%PROG% /S /noUpdater
|
||||
|
||||
:: ------------------------------------------------------------
|
||||
:: 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!)
|
||||
|
||||
Reference in New Issue
Block a user