# 1. SCOOP CHECK & INSTALL $bucketList = scoop bucket list 2>$null | Out-String if ($bucketList) { Write-Host "Scoop ist bereits installiert." -ForegroundColor White } else { Write-Host "Scoop wird installiert..." -ForegroundColor Yellow Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force $scoopInstallationsSkript = Invoke-RestMethod -Uri "https://get.scoop.sh" Invoke-Expression $scoopInstallationsSkript $bucketList = scoop bucket list 2>$null | Out-String } # 2. GIT CHECK & INSTALL if ((git --version 2>$null) -match "git version") { Write-Host "Git ist bereits installiert." -ForegroundColor White } else { Write-Host "Git wird installiert..." -ForegroundColor Yellow scoop install git if ((git --version 2>$null) -match "git version") { Write-Host "Git wurde erfolgreich installiert." -ForegroundColor Green } else { Write-Host "Error: Git konnte nicht installiert werden." -ForegroundColor Red exit 1 } } # 3. BUCKET CHECKS if ($bucketList -match "elexis") { Write-Host "elexis Bucket ist bereits vorhanden." -ForegroundColor White } else { scoop bucket add elexis https://git.streichtech.ch/elexis/scoop Write-Host "elexis Bucket hinzugefügt." -ForegroundColor Green } if ($bucketList -match "extras") { Write-Host "Extras Bucket ist bereits vorhanden." -ForegroundColor White } else { scoop bucket add extras Write-Host "Extras Bucket hinzugefügt." -ForegroundColor Green } Write-Host "" Write-Host "Fertig! Verfügbare Apps anzeigen mit: scoop search" -ForegroundColor Cyan Write-Host "Bsp. scoop search ee-cli" -ForegroundColor Cyan Write-Host "" Read-Host "Enter drücken zum Beenden"