You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ sudo scoop uninstall -g itunes-np
Uninstalling 'itunes-np' (12.12.4.1).
WARN Application "itunes-np" is still running. Scoop is configured to ignore this condition.
Running pre_uninstall script...
Running uninstaller script...
Removing shortcut C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Scoop Apps\iTunes.lnk
Unlinking C:\ProgramData\scoop\apps\itunes64-np\current
'itunes-np' was uninstalled.
As shown, pre_uninstall is run after test_running_processes, and so uninstallation would've been blocked if scoop config ignore_running_processes were False.
Possible Solution
Move pre_uninstall to before test_running_processes, to the very top, before any uninstalling prep work is run. This way, it also matches post_uninstall, which is run at the very end of the uninstall process.
Bug Report
Current Behavior
Currently,
pre_uninstall
is run aftertest_running_process
, which blocks the uninstallation if the app spawns any services.Expected Behavior
I'd expect
pre_uninstall
to manage teardown work such as stopping services so that the uninstallation isn't blocked by running processes.Additional context/output
An example of uninstalling
itunes-np
:As shown,
pre_uninstall
is run aftertest_running_processes
, and so uninstallation would've been blocked ifscoop config ignore_running_processes
wereFalse
.Possible Solution
Move
pre_uninstall
to beforetest_running_processes
, to the very top, before any uninstalling prep work is run. This way, it also matchespost_uninstall
, which is run at the very end of the uninstall process.System details
Windows version: 10.0.19041.1499
OS architecture: 64bit
PowerShell version: 7.2.2
Scoop Configuration
The text was updated successfully, but these errors were encountered: