Files
setup_windows_2/app/install_driverstore-explorer.cmd

22 lines
776 B
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% & CD /D %SAVEPATH%
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
set VERS=v0.12.110
set BASEURL=https://github.com/lostindark/DriverStoreExplorer/releases/download/%VERS%
set PROG=DriverStoreExplorer.%VERS%.zip
:: --- Lade Installationsdatei herunter
curl -kLs %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
:: --- Entpacke .ZIP
set DESTPATH=%SYSTEMDRIVE%\SETUP
powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath %DESTPATH% "