Skip to content

Commit 0d8e8f5

Browse files
committed
chore: remove path remove in the windows unstalling scripts
Signed-off-by: peefy <xpf6677@163.com>
1 parent 03be67b commit 0d8e8f5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

static/script/uninstall-cli.ps1

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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-
4433
Write-Output "KCL has been uninstalled successfully."
4534
Write-Output "Please restart your system or log off and on for the changes to take effect."

0 commit comments

Comments
 (0)