Skip to content

Commit

Permalink
Make dll removal conditioned on mono override in use
Browse files Browse the repository at this point in the history
  • Loading branch information
deriamis committed Aug 21, 2023
1 parent f7021d5 commit 4afa2c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -18761,8 +18761,10 @@ 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

w_try rm -f "${W_WINDIR_UNIX}/system32/mscoree.dll"
if [ "${W_ARCH}" = "win64" ]; then
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
elif [ -z "$1" ] || [ "$1" != "internal" ]; then
Expand Down

0 comments on commit 4afa2c7

Please sign in to comment.