# Nomadic for Windows: one-line installer. # irm https://nomadicai.vercel.app/install/windows.ps1 | iex # Downloads the Windows zip, checks its SHA-256 and runs the Nomadic installer inside it ("Nomadic Setup.exe") silently # (/S), which installs Nomadic with Start menu and Desktop shortcuts and an uninstaller, then opens it. Files downloaded by # PowerShell carry no "downloaded from the internet" mark, so SmartScreen does not stop the installer. # $Version must match WINDOWS_DOWNLOAD.version in packages/config/src/downloads.ts. Keep this file ASCII. & { $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $Version = '1.7.0' $Site = 'https://nomadicai.vercel.app' function Say($text) { Write-Host $text -ForegroundColor Cyan } try { if ([Environment]::OSVersion.Platform -ne 'Win32NT') { throw 'this installer is for Windows.' } if (-not [Environment]::Is64BitOperatingSystem) { throw 'Nomadic needs 64-bit Windows 10 or Windows 11.' } [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 $zipName = "Nomadic-$Version-windows-x64.zip" $work = Join-Path ([IO.Path]::GetTempPath()) ('nomadic-install-' + [Guid]::NewGuid().ToString('N')) New-Item -ItemType Directory -Path $work | Out-Null try { Say "Downloading Nomadic $Version for Windows (about 90 MB)..." $zip = Join-Path $work $zipName try { Invoke-WebRequest -UseBasicParsing -Uri "$Site/downloads/$zipName" -OutFile $zip } catch { throw 'download failed. Check your internet connection and try again.' } $sums = (Invoke-WebRequest -UseBasicParsing -Uri "$Site/downloads/Nomadic-$Version-windows-SHA256SUMS.txt").Content if ($sums -is [byte[]]) { $sums = [Text.Encoding]::ASCII.GetString($sums) } $expected = '' foreach ($line in ($sums -split "`n")) { $parts = $line.Trim() -split '\s+' if ($parts.Count -eq 2 -and $parts[1] -eq $zipName) { $expected = $parts[0].ToLower() } } $actual = (Get-FileHash -Algorithm SHA256 $zip).Hash.ToLower() if (-not $expected -or $expected -ne $actual) { throw 'the download is damaged (checksum mismatch). Run the command again.' } Say 'Checksum OK.' Add-Type -AssemblyName System.IO.Compression.FileSystem $unzipped = Join-Path $work 'unzipped' [IO.Compression.ZipFile]::ExtractToDirectory($zip, $unzipped) $setup = Join-Path $unzipped 'Nomadic Setup.exe' if (-not (Test-Path -LiteralPath $setup)) { throw 'Nomadic Setup.exe is missing from the zip.' } Get-Process -Name 'Nomadic' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue Say 'Installing Nomadic (no clicks needed)...' $run = Start-Process -FilePath $setup -ArgumentList '/S' -Wait -PassThru if ($run.ExitCode -ne 0) { throw "the installer failed (exit code $($run.ExitCode)). Run the command again." } Say 'Done. Nomadic is installed (Start menu and Desktop shortcuts).' Start-Sleep -Seconds 3 if (-not (Get-Process -Name 'Nomadic' -ErrorAction SilentlyContinue)) { $app = Join-Path $env:LOCALAPPDATA 'Programs\Nomadic\Nomadic.exe' if (Test-Path -LiteralPath $app) { Start-Process -FilePath $app } } } finally { Remove-Item $work -Recurse -Force -ErrorAction SilentlyContinue } } catch { Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red } }