[Bug] scoop uninstall scoop - He deleted something that was not within his competence. #5881
Replies: 13 comments
-
Recovered files via r-studio. |
Beta Was this translation helpful? Give feedback.
-
Losing files can be frustrating, but this is a human error, not a bug. Scoop considers Although the guide in #249 was published in 2014, but it still applies to the current version of Scoop, and it contains a backup step. Related: |
Beta Was this translation helpful? Give feedback.
-
Line 57 in f930280 If you think that forced deletion of a directory, without regard to the human factor, is good, then planes will crash more often with such programmers. The user should not worry that something is wrong with your installation or uninstallation. If you implement the code correctly, then when deleting you need a registry of installed directories and files and deletion according to this registry. |
Beta Was this translation helpful? Give feedback.
-
Also, this behavior is a tasty morsel for malware, |
Beta Was this translation helpful? Give feedback.
-
Malicious can do better without this in fact.
That's good and enough. tracking files is not a good idea. However, I would still identify the entire process of your missing files as Human error. you are installing Scoop with the advanced/unrecommended way in first time installation. |
Beta Was this translation helpful? Give feedback.
-
The suggestion for non-empty directory check was added to the ScoopInstaller/Install#60 For consistency, we should prompting more information when executing |
Beta Was this translation helpful? Give feedback.
-
@HUMORCE When installing, you can simply check for an empty directory. if the directory is empty, then install it into it, otherwise create your own scoop directory. Or should you always create your own empty directory. In this commentary, I expressed additional information and opinion that may help eliminate human error in the future. Thank you for your attention. |
Beta Was this translation helpful? Give feedback.
-
That's why I think it's a human error. I have not meet a situation where an environment variable is pointed to a parent directory, which may appear in the installation wizard of some programs:
|
Beta Was this translation helpful? Give feedback.
-
Please indicate where this is in the documentation where your environment variables are described. You must understand that everyone has their own intuition and experience in using programs. The program should not cause harm even if a human error occurs.ё |
Beta Was this translation helpful? Give feedback.
-
If you follow the installation guide, you will see the name of the parameter as
Of course, I know and I could not believe the mistake was made by you when I noticed you were using *nix-like directory structure in Windows. There's no point in arguing this now. Your issue has been tracked, once it is improved,THIS issue will not occur again. But what about the others? We must be vigilant when trying new things. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry. I found it in the description on the README.md page in ScoopInstaller/Install. The installation information is divided into different parts (https://scoop.sh/ , https://github.com/ScoopInstaller/Scoop , ScoopInstaller/Install, so I was not able to read it in time. I only got acquainted with https://scoop.sh/. Where there were no additional details. |
Beta Was this translation helpful? Give feedback.
-
I'll tell you how it happened.
|
Beta Was this translation helpful? Give feedback.
-
A possible solution: Only delete folders we create in $scoopdir and check if it was empty. |
Beta Was this translation helpful? Give feedback.
-
According to this issue #249
I changed the installation location via
[environment]::setEnvironmentVariable('SCOOP','Z:\usr','User')
Next I installed SCOOP
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
After installation, I realized that the installer for SCOOP does not create a separate folder and created all the working folders in the current directory (Z:\usr)
I decided to remove SCOOP
scoop uninstall scoop
As a result, all files and folders in
Z:\usr
began to be deleted.He deleting until he threw an error on the blocked file.
Now I don’t know what exactly was deleted from me.
I don't know how to restore files now.
I'm shocked. I hoped that it would delete safely without affecting files in the current directory and would delete exactly those folders that it had installed.
there were no warnings that the deletion would also affect third-party files
Complete shit.
Beta Was this translation helpful? Give feedback.
All reactions