@echo off rem One-click installer for the Everything bridge (2026-09-28). rem Downloads the bridge script from the KB web site, installs it under rem %LOCALAPPDATA%\EverythingBridge, registers autostart, starts it, then verifies. setlocal EnableExtensions title Everything Bridge Setup echo ============================================ echo KB web - Everything bridge installer echo ============================================ echo. echo Installing to: %LOCALAPPDATA%\EverythingBridge echo. powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop'; [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $d=Join-Path $env:LOCALAPPDATA 'EverythingBridge'; New-Item -ItemType Directory -Force -Path $d | Out-Null; $ps=Join-Path $d 'EverythingBridge.ps1'; Write-Host ' [1/4] downloading bridge script...'; Invoke-WebRequest -UseBasicParsing -Uri 'https://tymedinfo.online/web/tools/EverythingBridge.ps1' -OutFile $ps; Write-Host ' [2/4] writing launcher...'; $cmd=Join-Path $d 'start-bridge.cmd'; $q=[char]34; $run='start ' + $q + $q + ' /min powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File ' + $q + $ps + $q; Set-Content -Path $cmd -Encoding ASCII -Value ('@echo off', $run); Write-Host ' [3/4] registering autostart...'; $ws=New-Object -ComObject WScript.Shell; $lnk=$ws.CreateShortcut((Join-Path ([Environment]::GetFolderPath('Startup')) 'EverythingBridge.lnk')); $lnk.TargetPath=$cmd; $lnk.WindowStyle=7; $lnk.Description='Everything bridge for KB web copy-link'; $lnk.Save(); Write-Host ' [4/4] starting...'; Start-Process -FilePath $cmd -WindowStyle Hidden; Start-Sleep -Seconds 4; try { $r=Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8723/ping' -TimeoutSec 5; Write-Host ''; Write-Host (' OK bridge is running: ' + $r.Content) -ForegroundColor Green } catch { Write-Host ''; Write-Host ' WARN bridge did not answer; try running start-bridge.cmd again' -ForegroundColor Yellow }" echo. echo ============================================ echo Done. Go back to the web page and refresh. echo The button should turn green. echo ============================================ echo. pause