We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you are cleaning old versions that are still running, you will receive "Remove-Item : Cannot remove item" error.
To reproduce this:
Remove-Item : Cannot remove item C:\Users\ruruo\scoop\apps\syncthingtray\1.4.13\syncthingtray.exe: Access to the path 'syncthingtray.exe' is denied. At C:\Users\ruruo\scoop\apps\scoop\current\libexec\scoop-cleanup.ps1:50 char:9 + Remove-Item $dir -ErrorAction Stop -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (syncthingtray.exe:FileInfo) [Remove-Item], UnauthorizedAccessExceptio n + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Related: #2035
Add option to scoop cleanup for closing running apps to avoid "PermissionDenied" when apps are still running.
scoop cleanup
Not having such option.
The text was updated successfully, but these errors were encountered:
Would be nice if this code can be adapted for cleanup command
cleanup
Scoop/lib/install.ps1
Lines 1147 to 1165 in d337bb1
Sorry, something went wrong.
No branches or pull requests
Feature Request
Is your feature request related to a problem? Please describe.
When you are cleaning old versions that are still running, you will receive "Remove-Item : Cannot remove item" error.
To reproduce this:
Related: #2035
Describe the solution you'd like
Add option to
scoop cleanup
for closing running apps to avoid "PermissionDenied" when apps are still running.Describe alternatives you've considered
Not having such option.
The text was updated successfully, but these errors were encountered: