From 1131bf0b2235628fdec050983a96808108e0554b Mon Sep 17 00:00:00 2001 From: Austin English Date: Sun, 2 Aug 2020 15:06:02 -0500 Subject: [PATCH] dotnet40: use OnlyUseLatestCLR registry setting instead of dotnet20 to avoid WINEPREFIX update popup --- src/winetricks | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/winetricks b/src/winetricks index 1734d45f2..7ac28e448 100755 --- a/src/winetricks +++ b/src/winetricks @@ -9144,10 +9144,6 @@ load_dotnet40() w_call remove_mono - # Installing dotnet20 beforehand avoids a popup for users when updating their WINEPREFIX - # See https://bugs.winehq.org/show_bug.cgi?id=41727#c5 - w_call dotnet20 - w_call winxp w_try_cd "$W_CACHE/$W_PACKAGE" @@ -9161,6 +9157,9 @@ load_dotnet40() W_NGEN_CMD="$WINE $WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v4.0.30319/ngen.exe executequeueditems" + # Avoid a popup on WINEPREFIX updates, see https://bugs.winehq.org/show_bug.cgi?id=41727#c5 + "$WINE" reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v OnlyUseLatestCLR /t REG_DWORD /d 0001 /f + w_set_winver 'default' }