From 31c6ba937b9573debc6866b3c476c80e3de74fb5 Mon Sep 17 00:00:00 2001 From: Austin English Date: Fri, 7 Jul 2023 03:15:14 -0500 Subject: [PATCH] remove_mono: always remove mscoree/.NET registry entries --- src/winetricks | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/winetricks b/src/winetricks index 815b57c73..268d7c7fa 100755 --- a/src/winetricks +++ b/src/winetricks @@ -18756,19 +18756,19 @@ load_remove_mono() for uuid in ${mono_uuid}; do "${WINE_ARCH}" uninstaller --remove "${uuid}" done + + "${WINE_ARCH}" reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5" /f || true + "${WINE_ARCH}" reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4" /f || true + + w_try rm -f "${W_WINDIR_UNIX}/system32/mscoree.dll" + if [ "${W_ARCH}" = "win64" ]; then + w_try rm -f "${W_WINDIR_UNIX}/syswow64/mscoree.dll" + fi elif [ -z "$1" ] || [ "$1" != "internal" ]; then # Bail out if mono isn't installed, so we don't break .Net setups w_warn "Mono does not appear to be installed." return fi - - "${WINE_ARCH}" reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5" /f || true - "${WINE_ARCH}" reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4" /f || true - - w_try rm -f "${W_WINDIR_UNIX}/system32/mscoree.dll" - if [ "${W_ARCH}" = "win64" ]; then - w_try rm -f "${W_WINDIR_UNIX}/syswow64/mscoree.dll" - fi }