Sworld

Sworld

The only way to do great work is to love what you do.

How to Handle Unexpected Uninstallation of Scoop

Recently, I found that Scoop mysteriously disappeared from my computer. I suspect it might be an issue with UniGetUI. In any case, my Scoop was uninstalled, and the environment variables for the software installed via Scoop became invalid, which made my coding environment unusable. After reinstalling Scoop, the environment variables did not restore, but I noticed that the path C:\Users\Username\scoop was not lost, indicating that the software files and persistent data should not be missing. After searching for some information, I found a solution in a GitHub Issue. If you encounter the same problem, you can try the following steps to resolve it:

cd C:\Users\Username\scoop\apps
scoop reset *

After reinstalling Scoop and performing this operation, I successfully restored the environment for most of the corresponding software, except for some software that I had already opened, which did not restore. However, I can manually use scoop reset software_name to restore them individually later.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.