Skip to content

Commit

Permalink
remove_mono: avoid a warning on 32-bit prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
austin987 committed Jan 3, 2024
1 parent f01baf1 commit 031ed23
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -19015,12 +19015,11 @@ load_remove_mono()
"${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

if grep --quiet --text "WINE_MONO_OVERRIDES" "${W_WINDIR_UNIX}/system32/mscoree.dll"; then
w_try rm -f "${W_WINDIR_UNIX}/system32/mscoree.dll"
fi
if grep --quiet --text "WINE_MONO_OVERRIDES" "${W_WINDIR_UNIX}/syswow64/mscoree.dll"; then
w_try rm -f "${W_WINDIR_UNIX}/syswow64/mscoree.dll"
fi
for mscoree_dll in "${W_SYSTEM32_DLLS}/mscoree.dll" "${W_SYSTEM64_DLLS}/mscoree.dll"; do
if [ -f "${mscoree_dll}" ] && grep --quiet --text "WINE_MONO_OVERRIDES" "${mscoree_dll}"; then
w_try rm -f "${mscoree_dll}"
fi
done
elif [ -z "$1" ] || [ "$1" != "internal" ]; then
w_warn "Mono does not appear to be installed."
fi
Expand Down

0 comments on commit 031ed23

Please sign in to comment.