From 13655f5a548ad4ae883ecb0ab9a480c431d4ec45 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:26:07 +0000 Subject: [PATCH] docs: fix Windows install path Use %LOCALAPPDATA%\Programs\barn instead of System32. Co-Authored-By: Claude Opus 4.5 --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 62f9a43..9ef002e 100644 --- a/README.md +++ b/README.md @@ -72,17 +72,23 @@ sudo mv barn /usr/local/bin/ ### Windows -**Download the binary:** - -1. Download `barn-windows-x64.exe` from the [latest release](https://github.com/samson-media/barn/releases/latest) -2. Rename to `barn.exe` and move to a directory in your PATH - -**PowerShell:** +**PowerShell (recommended):** ```powershell -Invoke-WebRequest -Uri "https://github.com/samson-media/barn/releases/latest/download/barn-windows-x64.exe" -OutFile "barn.exe" -Move-Item barn.exe C:\Windows\System32\ +# Create install directory +New-Item -ItemType Directory -Force -Path "$env:LOCALAPPDATA\Programs\barn" + +# Download +Invoke-WebRequest -Uri "https://github.com/samson-media/barn/releases/latest/download/barn-windows-x64.exe" -OutFile "$env:LOCALAPPDATA\Programs\barn\barn.exe" + +# Add to PATH (current user) +$path = [Environment]::GetEnvironmentVariable("Path", "User") +if ($path -notlike "*$env:LOCALAPPDATA\Programs\barn*") { + [Environment]::SetEnvironmentVariable("Path", "$path;$env:LOCALAPPDATA\Programs\barn", "User") +} ``` +Restart your terminal after installation. + ### Verify Installation ```bash