# Installs Agent Village (Pixlage) on Windows, in PowerShell: # # irm https://pixlage.app/install.ps1 | iex # # A file PowerShell downloads has no "from the internet" mark, so SmartScreen doesn't stop the installer the way # it stops a browser download. Installs for the current user, without admin. Running it again updates to the # latest release; your villagers and settings are kept. # Keep this file ASCII: Windows PowerShell 5.1 may read it in the system code page. & { $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 if (-not [Environment]::Is64BitOperatingSystem) { throw 'Agent Village needs 64-bit Windows 10 or newer.' } $url = 'https://github.com/Nofyz/agent-village-releases/releases/latest/download/Agent-Village-Windows-Setup.exe' $setup = Join-Path ([IO.Path]::GetTempPath()) 'Agent-Village-Windows-Setup.exe' Write-Host '> Downloading Agent Village' -ForegroundColor Yellow Invoke-WebRequest -Uri $url -OutFile $setup -UseBasicParsing # /S runs the installer silently; /currentuser keeps it per-user, so no admin prompt. It closes a running copy. Write-Host '> Installing (no admin needed)' -ForegroundColor Yellow $process = Start-Process -FilePath $setup -ArgumentList '/S', '/currentuser' -Wait -PassThru Remove-Item $setup -ErrorAction SilentlyContinue if ($process.ExitCode -ne 0) { throw "The installer stopped with code $($process.ExitCode)." } # The installer records the app in the user's uninstall list; its icon path is the app itself. $exe = Join-Path $env:LOCALAPPDATA 'Programs\Agent Village\Agent Village.exe' $entry = Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' -ErrorAction SilentlyContinue | Where-Object { $_.DisplayName -like 'Agent Village*' } | Select-Object -First 1 if ($entry -and $entry.DisplayIcon) { $icon = ($entry.DisplayIcon -split ',')[0].Trim('"') if ($icon -like '*.exe' -and (Test-Path $icon)) { $exe = $icon } } Write-Host '+ Agent Village is installed.' -ForegroundColor Green if (Test-Path $exe) { Start-Process -FilePath $exe Write-Host '+ Look for its icon in the system tray, next to the clock.' -ForegroundColor Green } else { Write-Host '+ Open it from the Start menu.' -ForegroundColor Green } }