$ErrorActionPreference = 'Stop' if (-not [Environment]::Is64BitOperatingSystem -or $env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { throw 'Bu kurulum Windows x64 içindir. https://siberai.net/install' } $expected = '328271b33e7485c126412923c26c8ed5956b05879e7c9de6ab0bc4cf434daa47' $folder = Join-Path ([IO.Path]::GetTempPath()) ('siberai-setup-' + [Guid]::NewGuid().ToString('N')) New-Item -ItemType Directory -Path $folder | Out-Null $file = Join-Path $folder 'SiberAI-Agent-Setup.exe' try { Write-Host 'SiberAI Agent indiriliyor…' Invoke-WebRequest -UseBasicParsing -Uri 'https://siberai.net/downloads/SiberAI-Agent-Setup-0.1.28-x64.exe' -OutFile $file if ((Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() -ne $expected) { throw 'SHA256 doğrulaması başarısız. Kurulum çalıştırılmadı.' } Write-Host 'Dosya doğrulandı. Kurulum sihirbazı açılıyor. İptal etmek için sihirbazı kapatın.' $setup = Start-Process -FilePath $file -Wait -PassThru if ($setup.ExitCode -ne 0) { throw ('Kurulum tamamlanmadı. Çıkış kodu: ' + $setup.ExitCode) } Write-Host 'Kurulum tamamlandı. Başlat menüsünden SiberAI Agent uygulamasını açın.' } finally { if (Test-Path -LiteralPath $file) { Remove-Item -LiteralPath $file -Force } if (Test-Path -LiteralPath $folder) { Remove-Item -LiteralPath $folder } }