msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.29k stars 487 forks source link

win10 pro dirty uninstall, installation clarification #1370

Open jocelynjyl opened 6 years ago

jocelynjyl commented 6 years ago

Followed the instructions here https://www.msys2.org/ using msys2-x86_64-20180531.exe to install on 64-bit Windows 10 Pro.

pacman -Syu succeeds. Then I restart the PC.

However, after running pacman -Su, bash disappears from usr/bin and re-opening msys2 gives "Failed to run '/usr/bin/bash': No such file or directory". Also, Msys2 fails to uninstall cleanly; the entry is left behind in Apps & Features and there's no way to remove it.


As a followup to this, I finally managed to get a somewhat working installation of msys2.org by running pacman -Syu exactly once, and then going on to install the package I needed. Occasionally when I try to update a package, bash gets deleted completely and I'm not sure what's going on.

If possible, please clarify the instructions found here: https://github.com/msys2/msys2/wiki/MSYS2-installation I found this part rather ambiguous since running pacman -Syuu repeatedly does not work on my machine.

Run pacman -Syuu. Follow the instructions. Repeat this step until it says there are no packages to update.

I haven't found a fix for the dirty uninstall though; I'm not sure if there's a corrupted registry key sitting somewhere and the Windows troubleshooter for these types of issues can't find msys2.

StarWolf3000 commented 6 years ago

What kind of anti-virus software do you have installed?

jocelynjyl commented 6 years ago

Avast Free Version 18.1.2326 (build 18.1.3800.0)

StarWolf3000 commented 6 years ago

Is the MSYS2 installation folder on both Exclude lists?

jocelynjyl commented 6 years ago

Thanks! That seems to have fixed the disappearing bash issue.

However, I'm still unable to cleanly uninstall msys2 since it leaves entries in apps & features.

StarWolf3000 commented 6 years ago

Open the Registry Editor (regedit), navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall and there should be a few entries, that look like this: {44fce769-6d66-43ce-81a9-61d9d0e86eb4} Check them out which is your MSYS2 installation, since I don't have this version installed on my machine here. After you have uninstalled or deleted this version from your Windows, delete the corresponding key (the "folder") under this tree. This removes the ghost entry from Apps & Features.

jocelynjyl commented 6 years ago

I double checked my regedit and still can't find any registry keys associated with MSYS2. However the ghost entries remain. Is there anywhere it could be hiding other than in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall ?

xbelanch commented 3 years ago

Maybe it's no the right thread but I got two ghost entries at Apps & features of previous installations of MSYS2:

Captura

I searched the registry keys of MSYS2 of those ghost entries on HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall but I didn't find them (as @jocelynjyl says)

Is there any other workaround to remove those ghost entries? I found this on Stack Overflow https://stackoverflow.com/questions/50545907/how-to-uninstall-msys2 but I think that's not the properly way to solve that.

StarWolf3000 commented 3 years ago

@xbelanch If the ghost entries no longer exist on the installed location, clicking on "Uninstall" (or "Desinstalar" for your UI language) will Windows make tell you that the setup program or uninstall program cannot be found and asking you to remove the entry from list.

Be careful! If you installed the new version into the same location, clicking "Uninstall" will remove it instead, even when the older entry is selected!

xbelanch commented 3 years ago

Be careful! If you installed the new version into the same location, clicking "Uninstall" will remove it instead, even when the older entry is selected!

Yep! I know! (appreciate your warning) That's why I'm looking for a solution to remove those old MSYS2 entries from Apps & features.