@echo off setlocal EnableExtensions title Assetto Corsa Teammanager - Installer echo ============================================================ echo ASSETTO CORSA TEAMMANAGER -- INSTALLER echo ============================================================ echo. echo HINWEIS: Dies ist ein INSTALLER. echo. echo Er installiert bzw. aktualisiert die ACTM-Cockpit-App in echo deinem Assetto-Corsa-Ordner ( apps\lua\METteammanager ). echo Es wird nichts ausserhalb von Assetto Corsa veraendert. echo. echo ------------------------------------------------------------ echo. REM --- Installer still nach %LOCALAPPDATA%\ACTM legen + Desktop-Verknuepfung mit Logo --- REM (keine Rueckfrage mehr; die Verknuepfung zeigt auf die stabile Kopie, nicht auf Downloads) set "ACTMDIR=%LOCALAPPDATA%\ACTM" if not exist "%ACTMDIR%" mkdir "%ACTMDIR%" >nul 2>&1 if /I not "%~f0"=="%ACTMDIR%\Assetto-Corsa-Teammanager.bat" ( copy /Y "%~f0" "%ACTMDIR%\Assetto-Corsa-Teammanager.bat" >nul 2>&1 ) powershell -NoProfile -ExecutionPolicy Bypass -Command "$dir = Join-Path $env:LOCALAPPDATA 'ACTM'; $ico = Join-Path $dir 'actm.ico'; try { iwr -useb 'https://app.metteammanager.de/dist/csp-app/actm.ico' -OutFile $ico } catch {}; try { $ws = New-Object -ComObject WScript.Shell; $lnk = $ws.CreateShortcut((Join-Path ([Environment]::GetFolderPath('Desktop')) 'Assetto Corsa Teammanager.lnk')); $lnk.TargetPath = Join-Path $dir 'Assetto-Corsa-Teammanager.bat'; $lnk.WorkingDirectory = $dir; if (Test-Path $ico) { $lnk.IconLocation = $ico + ',0' }; $lnk.Description = 'ACTM Cockpit-App installieren/aktualisieren'; $lnk.Save() } catch {}" >nul 2>&1 echo ============================================================ echo Installer wird geladen ... echo ============================================================ echo. REM v0.23.19: TLS 1.2 erzwingen (-bor 3072) — auf aelteren Windows/PowerShell-5.1-Setups REM ist TLS 1.2 nicht default, Caddy spricht aber nur TLS 1.2+ -> "Unable to connect". powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; try { iwr -useb https://app.metteammanager.de/dist/csp-app/installer.ps1 | iex } catch { Write-Host ''; Write-Host 'FEHLER beim Laden des Installers:' -Foreground Red; Write-Host $_.Exception.Message; Read-Host 'ENTER zum Beenden' }" endlocal