34 lines
954 B
Batchfile
34 lines
954 B
Batchfile
@echo off
|
|
|
|
set DOWNLOADFILE="%TEMP%\AI_WEBLAUNCHER.exe"
|
|
|
|
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
|
|
set ARCH=64bit
|
|
) else if "%PROCESSOR_ARCHITECTURE%" == "ARM64" (
|
|
set ARCH=32bit
|
|
) else if "%PROCESSOR_ARCHITECTURE%" == "IA64" (
|
|
echo exit 255
|
|
) else if "%PROCESSOR_ARCHITECTURE%" == "x86" (
|
|
set ARCH=32bit
|
|
) else (
|
|
echo exit 254
|
|
)
|
|
|
|
:: download AI WebLauncher
|
|
"%SYSTEMROOT%\System32\bitsadmin.exe" /transfer /download https://www.bietercockpit.de/res/files/AI_WEBLAUNCHER%ARCH%.exe %DOWNLOADFILE% >NUL
|
|
|
|
:: install AI WebLauncher
|
|
:: known parameters:
|
|
:: -varfile [file] Responsefile
|
|
:: -c Console mode
|
|
:: -q Quiet mode
|
|
:: -dir [directory] Install directory
|
|
:: -overwrite overwrite files in quiet mode
|
|
:: -nofilefailures ignore errors in quiet mode
|
|
:: -splash [title] show splash screen in quiet mode
|
|
:: -console show console in quiet mode
|
|
:: -manual choose jre
|
|
:: -Dname=value Set system properties
|
|
:: -h show help
|
|
"%DOWNLOADFILE%" -q
|