File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ if (Test-Path $CACHE_DIR) {
112112Write-Step " ffmpeg"
113113if (Get-Command ffmpeg - ErrorAction SilentlyContinue) {
114114 if (Prompt- YesNo " Remove ffmpeg?" ) {
115- winget uninstall -- name " FFmpeg"
115+ winget uninstall -- id Gyan. FFmpeg -- scope machine
116116 if ($LASTEXITCODE -ne 0 ) {
117117 Write-Warn " ffmpeg uninstall may have failed — remove manually via winget or Settings -> Apps"
118118 } else {
@@ -130,6 +130,12 @@ if (Get-Command ffmpeg -ErrorAction SilentlyContinue) {
130130Write-Step " uv"
131131if (Get-Command uv - ErrorAction SilentlyContinue) {
132132 if (Prompt- YesNo " Remove uv?" ) {
133+ # Remove uv's Python and package cache before uninstalling the tool itself
134+ $uvCache = " $env: LOCALAPPDATA \uv"
135+ if (Test-Path $uvCache ) {
136+ Remove-Item - Recurse - Force $uvCache
137+ Write-OK " Removed uv cache at $uvCache "
138+ }
133139 winget uninstall -- id astral- sh.uv
134140 if ($LASTEXITCODE -ne 0 ) {
135141 Write-Warn " uv uninstall may have failed — remove manually via winget or Settings -> Apps"
You can’t perform that action at this time.
0 commit comments