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 }