Files
setup_windows_2/app/install_audacity.cmd
T
2026-09-10 12:20:45 +00:00

27 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
:: https://github.com/audacity/audacity/releases/latest
set VERS=4.0.0
:: Bsp: https://github.com/audacity/audacity/releases/download/Audacity-4.0.0/audacity-win-4.0.0-x86_64.msi
set BASEURL=https://github.com/audacity/audacity/releases/download/Audacity-%VERS%
set PROG=audacity-win-%VERS%-x86_64.msi
:: --- 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.
%PROG% /VERYSILENT /NORESTART /ALLUSERS
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)