Files
setup_windows_2/app/install_audacity.cmd
T

27 lines
1.1 KiB
Batchfile
Raw Normal View History

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
:: https://github.com/audacity/audacity/releases/latest
2026-09-10 14:04:46 +02:00
set VERS=4.0.0
2026-09-10 12:20:45 +00:00
:: Bsp: https://github.com/audacity/audacity/releases/download/Audacity-4.0.0/audacity-win-4.0.0-x86_64.msi
2026-09-10 09:05:27 +02:00
set BASEURL=https://github.com/audacity/audacity/releases/download/Audacity-%VERS%
2026-09-10 12:20:45 +00:00
set PROG=audacity-win-%VERS%-x86_64.msi
2026-09-10 09:05:27 +02:00
:: --- 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.
2026-09-10 12:24:59 +00:00
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
2026-09-10 09:05:27 +02:00
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)