Added USERPROFILE to possible KiCad paths in Windows setup script

This commit is contained in:
Joshua Reichmann
2025-11-28 15:17:33 +01:00
parent ac8563758a
commit 19b30088f6

View File

@@ -79,6 +79,7 @@ function Find-KiCAD {
$possiblePaths = @( $possiblePaths = @(
"C:\Program Files\KiCad", "C:\Program Files\KiCad",
"C:\Program Files (x86)\KiCad" "C:\Program Files (x86)\KiCad"
"$env:USERPROFILE\AppData\Local\Programs\KiCad"
) )
$versions = @("9.0", "9.1", "10.0", "8.0") $versions = @("9.0", "9.1", "10.0", "8.0")
@@ -114,6 +115,7 @@ if ($kicad) {
Write-Info "Python Path: $($kicad.PythonLib)" Write-Info "Python Path: $($kicad.PythonLib)"
} else { } else {
Write-Error-Custom "KiCAD not found in standard locations" Write-Error-Custom "KiCAD not found in standard locations"
Write-Warning-Custom "Checked: C:\Program Files, C:\Program Files (x86), and $env:USERPROFILE\AppData\Local\Programs"
Write-Warning-Custom "Please install KiCAD 9.0+ from https://www.kicad.org/download/windows/" Write-Warning-Custom "Please install KiCAD 9.0+ from https://www.kicad.org/download/windows/"
$script:Results.Errors += "KiCAD not found" $script:Results.Errors += "KiCAD not found"
} }