Update von AE übernommen...
This commit is contained in:
@@ -5,17 +5,24 @@
|
||||
:: --- 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%
|
||||
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
|
||||
|
||||
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
||||
set VERS=v0.12.110
|
||||
:: 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 Installationsdatei herunter
|
||||
curl -kLs %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
:: --- 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!)
|
||||
|
||||
|
||||
:: --- Entpacke .ZIP
|
||||
set DESTPATH=%SYSTEMDRIVE%\SETUP
|
||||
powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath %DESTPATH% "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user