# ULTRV CLI installer for Windows # Usage: irm https://dl.ultrv.com/install.ps1 | iex $ErrorActionPreference = "Stop" $InstallDir = "$env:LOCALAPPDATA\ultrv" $Url = "https://dl.ultrv.com/cli/latest/ultrv-x86_64-pc-windows-msvc.zip" Write-Host "Installing ultrv for Windows x86_64..." # Create install directory if (-not (Test-Path $InstallDir)) { New-Item -ItemType Directory -Path $InstallDir -Force | Out-Null } # Download $TmpZip = Join-Path $env:TEMP "ultrv.zip" Invoke-WebRequest -Uri $Url -OutFile $TmpZip -UseBasicParsing # Extract Expand-Archive -Path $TmpZip -DestinationPath $InstallDir -Force Remove-Item $TmpZip # Add to PATH if not already there $UserPath = [Environment]::GetEnvironmentVariable("Path", "User") if ($UserPath -notlike "*$InstallDir*") { [Environment]::SetEnvironmentVariable("Path", "$UserPath;$InstallDir", "User") Write-Host "Added $InstallDir to your PATH." Write-Host "Restart your terminal for PATH changes to take effect." } Write-Host "ultrv installed to $InstallDir\ultrv.exe" Write-Host "Run 'ultrv' to get started."