[windows] Provide more explicit means of uninstallation
Uninstallation is generally scary. GHCup already provides means to uninstall installed tools (such as GHC, cabal, ...), but Windows uninstallation would be a little more than that. So after implementing #135 (closed) which is rather well-defined, we need to deal with the following in addition
- uninstall MSYS2 if the user wants (remember, we allow to hook in an existing install)
- clean up several environment variables that were set (this may affect e.g.
cabal
from another install, since we setCABAL_DIR
globally to avoid issues with MAX_PATH) - clean up desktop files
- maybe clean up
.cabal
There could be multiple ways to achieve this:
- integrate uninstallation as an option in the default bootstrap script that's also used for installation
- create a separate script and place it on the desktop (or somewhere else?), which will carry out the uninstallation interactively
Edited by Julian Ospald