diff --git a/Erlang16/tools/chocolateyUninstall.ps1 b/Erlang16/tools/chocolateyUninstall.ps1 index b426df3..fea8e5f 100644 --- a/Erlang16/tools/chocolateyUninstall.ps1 +++ b/Erlang16/tools/chocolateyUninstall.ps1 @@ -20,7 +20,8 @@ try Uninstall-ChocolateyPackage @uninstallParams - $binLocation = Join-Path $installPath 'bin' + $binLocation = (Join-Path $installPath 'bin') -replace '\\', '\\' + $userPaths = [Environment]::GetEnvironmentVariable('Path', 'User') -split ';' | ? { ($_ -notmatch $binLocation) -and (![String]::IsNullOrEmpty($_)) } | Select-Object -Unique