2026-09-10 09:05:27 +02:00
|
|
|
:: ------------------------------------------------------------
|
|
|
|
|
:: Installationsroutine
|
|
|
|
|
:: ------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
:: --- 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%
|
|
|
|
|
|
|
|
|
|
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
|
|
|
|
set VERS=1.2.7
|
|
|
|
|
set BASEURL=https://github.com/xournalpp/xournalpp/releases/download/v%VERS%
|
|
|
|
|
set PROG=xournalpp-%VERS%-windows-setup-x86_64.exe
|
|
|
|
|
|
|
|
|
|
:: --- Lade Datei herunter
|
|
|
|
|
echo Starte Download Version %VERS%.
|
|
|
|
|
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
|
|
|
|
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|
|
|
|
|
|
|
|
:: --- Silent-Installation des Programms:
|
|
|
|
|
echo Starte Installation.
|
|
|
|
|
%PROG% /S
|
|
|
|
|
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|