Files
setup_windows_2/app/install_driverstore-explorer.cmd
T

29 lines
1.1 KiB
Batchfile

:: ------------------------------------------------------------
:: 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
:: ttps://github.com/lostindark/DriverStoreExplorer/releases/latest
set VERS=v0.12.127
set BASEURL=https://github.com/lostindark/DriverStoreExplorer/releases/download/%VERS%
set PROG=DriverStoreExplorer.%VERS%.zip
:: --- 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!)
:: --- Silent-Installation des Programms:
echo Starte Installation.
set DESTPATH=%SYSTEMDRIVE%\SETUP
powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath %DESTPATH% "
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)