ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.01k stars 1.4k forks source link

[Bug] A bug between Scoop and pwsh.exe #6167

Closed wangzhaohan2910 closed 6 hours ago

wangzhaohan2910 commented 6 hours ago

Bug Report

Current Behavior

That is, when I installed pwsh.exe by Scoop, I can't uninstall it!

Expected Behavior

That is what I expected. Because I searched in the source of Scoop, I found a condition that if there is a pwsh.exe on the user's PC, use this pwsh. Else, use powershell.

Additional context/output

I think this is enough. Thanks.

Possible Solution

Add a special condition, if that the user wants to uninstall the pwsh.exe by Scoop, then don't use pwsh.exe. Use powershell then.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 5.1.14393.2879

Additional software: pwsh.exe: 7.4.5

Scoop Configuration

// It's none.
wangzhaohan2910 commented 6 hours ago

Sorry, I tried uninstall it in powershell, and it's done!