File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,5 @@ if (Test-Path $KCLRoot) {
3030 }
3131}
3232
33- # Remove KCLRoot from User Path environment variable
34- Write-Output " Removing $KCLRoot from User Path Environment variable..."
35- $UserPathEnvironmentVar = Environment::GetEnvironmentVariable(" PATH" , " User" )
36- if ($UserPathEnvironmentVar -like " *$KCLRoot *" ) {
37- $NewUserPath = ($UserPathEnvironmentVar -split ' ;' | Where-Object { $_ -ne $KCLRoot -and $_ -ne $KCLCliFileBinPath }) -join ' ;'
38- Environment::SetEnvironmentVariable(" PATH" , $NewUserPath , " User" )
39- Write-Output " KCL directory removed from User Path."
40- } else {
41- Write-Output " KCL directory not found in User Path. Skipping..."
42- }
43-
4433Write-Output " KCL has been uninstalled successfully."
4534Write-Output " Please restart your system or log off and on for the changes to take effect."
You can’t perform that action at this time.
0 commit comments