# PowerShell script to download and install Mailspring # Run as Administrator $downloadUrl = "https://github.com/Foundry376/Mailspring/releases/download/1.17.3/MailspringSetup.exe" $installerPath = "$env:TEMP\MailspringSetup.exe" Write-Host "[INFO] Downloading Mailspring..." Write-Host "[INFO] This may take a few minutes (approx 200MB)..." try { # Download the installer Invoke-WebRequest -Uri $downloadUrl -OutFile $installerPath -UseBasicParsing Write-Host "[OK] Download complete: $installerPath" # Run the installer silently Write-Host "[INFO] Installing Mailspring..." Start-Process -FilePath $installerPath -ArgumentList "/S" -Wait Write-Host "[OK] Mailspring installed successfully!" Write-Host "[INFO] You can find Mailspring in your Start Menu" # Cleanup Remove-Item $installerPath -Force Write-Host "[INFO] Cleanup complete" } catch { Write-Host "[ERROR] Installation failed: $_" exit 1 }