Skip to content
New issue

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

Use scoop uninstall scoop raise "access is denied". #4701

Closed
hungpham3112 opened this issue Jan 31, 2022 · 10 comments
Closed

Use scoop uninstall scoop raise "access is denied". #4701

hungpham3112 opened this issue Jan 31, 2022 · 10 comments
Labels

Comments

@hungpham3112
Copy link

Bug Report

Current Behavior

Trying to uninstall scoop with scoop uninstall scoop and see those messages:

image

Expected Behavior

scoop uninstall scoop removes scoop and related information.

Additional context/output

If I remove package 1 by 1, finally remove scoop, it will works.

Possible Solution

I have no idea, I just used scoop for 1 week.

System details

Windows version:: 11

OS architecture:: 64bit

PowerShell version::

Major Minor Patch PreReleaseLabel BuildLabel


7 2 1
Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
  "lastupdate": "2022-01-31T09:39:29.9450785+07:00",
  "SCOOP_REPO": "https://github.com/ScoopInstaller/Scoop",
  "SCOOP_BRANCH": "master",
  "alias.reinstall": "scoop uninstall {0}; scoop install {0}",
  "alias": {}
}
@HUMORCE
Copy link
Member

HUMORCE commented Feb 2, 2022

Scoop does not have a complete self-uninstaller, If you want a complete uninstallation of Scoop:

remove these directories.

  • C:\Users\<USERNAME>\scoop
  • C:\ProgramData\scoop
  • C:\Users\<USERNAME>\.config\scoop

remove any paths from $PATH that starts with them:

  • C:\Users\<USERNAME>\scoop\
  • C:\ProgramData\scoop\

if custom directory and environment variable is sets, then remove them too.
https://github.com/ScoopInstaller/Scoop/wiki/Quick-Start#installing-scoop-to-custom-directory

@rashil2000
Copy link
Member

I just tried this on a fresh install:

Screenshot 2022-02-20 024706

In this case the persist folder is left behind. Everything else is cleaned.

To remove the persist folder too, the command is scoop uninstall scoop --purge

@hungpham3112
Copy link
Author

I just tried this on a fresh install:

Screenshot 2022-02-20 024706

In this case the persist folder is left behind. Everything else is cleaned.

To remove the persist folder too, the command is scoop uninstall scoop --purge

image

I still get error today. What is Access is denied? I'm the admin of this computer, how is this possible.

@hungpham3112
Copy link
Author

hungpham3112 commented Feb 23, 2022

I just tried this on a fresh install:
Screenshot 2022-02-20 024706
In this case the persist folder is left behind. Everything else is cleaned.
To remove the persist folder too, the command is scoop uninstall scoop --purge

image

I still get error today. What is Access is denied? I'm the admin of this computer, how is this possible.

I thinks this is my fault because I tried to uninstall scoop in another machine and it worked fine. But I don't know how t fix that, it seems like every file I want to delete says access is denied. Maybe my account is not admin?

image

@hungpham3112
Copy link
Author

hungpham3112 commented Feb 23, 2022

I just tried this on a fresh install:
Screenshot 2022-02-20 024706
In this case the persist folder is left behind. Everything else is cleaned.
To remove the persist folder too, the command is scoop uninstall scoop --purge

image
I still get error today. What is Access is denied? I'm the admin of this computer, how is this possible.

I thinks this is my fault because I tried to uninstall scoop in another machine and it worked fine. But I don't know how t fix that, it seems like every file I want to delete says access is denied. Maybe my account is not admin?

image

Ok, finally I found it. Scoop\Window~1\ is being used by other process so it can't delete. What is scoop\window~1\. It just have Window-Terminal folder in there. So I guess window~1 is Window-Terminal. It's still using .dll file in the background but I don't open it.
image

@rashil2000
Copy link
Member

Have you installed Windows Terminal through scoop?

In that case you need to close it and run the command in plain cmd.exe terminal.

@hungpham3112
Copy link
Author

Have you installed Windows Terminal through scoop?

In that case you need to close it and run the command in plain cmd.exe terminal.

I didn't open it. Those processes run in background.

@rashil2000
Copy link
Member

You need to completely close Windows Terminal (and disable automatic startup at boot in Windows Terminal settings).

@hungpham3112
Copy link
Author

You need to completely close Windows Terminal (and disable automatic startup at boot in Windows Terminal settings).

Oh, my fault sorry, It not cause by window terminal, actually it's winfetch. Winfetch still use .dll file in the background. You can check it.

@rashil2000
Copy link
Member

The best option would be to reboot the computer (after disabling auto start). Then use the cmd.exe terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants