# Kortex Desktop 1.0.3 pour Windows - https://kortex.site/telechargement & { $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' if (-not [Environment]::Is64BitOperatingSystem) { throw 'Kortex Desktop nécessite Windows 64 bits.' } $work = Join-Path $env:TEMP ('kortex-' + [guid]::NewGuid()) New-Item -ItemType Directory -Path $work | Out-Null try { $installer = Join-Path $work 'KortexDesktop_1.0.3_x64-setup.exe' Write-Host 'Téléchargement de Kortex Desktop 1.0.3 (environ 225 Mio)...' Invoke-WebRequest -UseBasicParsing -Uri 'https://downloads.kortex.site/KortexDesktop_1.0.3_x64-setup.exe' -OutFile $installer if ((Get-FileHash $installer -Algorithm SHA256).Hash -ne 'e38310aa2b6bac8b23b98a52bb7022aa2abe8821847bfec1e504e60b72437d5b') { throw 'Empreinte SHA-256 incorrecte : installation annulée.' } Write-Host 'Empreinte vérifiée. Installation...' $setup = Start-Process -FilePath $installer -ArgumentList '/S' -Wait -PassThru if ($setup.ExitCode -ne 0) { throw "L'installation a échoué (code $($setup.ExitCode))." } } finally { try { [IO.Directory]::Delete($work, $true) } catch {} } $app = Join-Path $env:LOCALAPPDATA 'Programs\KortexDesktop\kortex-desktop.exe' if (-not (Test-Path -LiteralPath $app)) { throw 'Kortex Desktop est introuvable après installation.' } Write-Host 'Kortex Desktop est installé.' Start-Process -FilePath $app }