From b8d145a95171e3d9a58ed0bd37bf2bae64d8230f Mon Sep 17 00:00:00 2001 From: Maotong Zhang Date: Fri, 13 Sep 2024 08:46:52 +0800 Subject: [PATCH] dotnet:Fix 64 bit rundll32.exe pop-up window Avoid a popup on WINEPREFIX updates, see https://bugs.winehq.org/show_bug.cgi?id=41727#c5 --- src/winetricks | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/winetricks b/src/winetricks index 0b119c95f..d950063b1 100755 --- a/src/winetricks +++ b/src/winetricks @@ -9656,6 +9656,10 @@ load_dotnet40() # 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 + if [ "${W_ARCH}" = "win64" ]; then + "${WINE}" reg add "HKLM\\Software\\Wow6432Node\\.NETFramework" /v OnlyUseLatestCLR /t REG_DWORD /d 0001 /f + fi + # See https://bugs.winehq.org/show_bug.cgi?id=47277#c9 case "${LANG}" in C|en_US.UTF-8*) ;; @@ -9759,6 +9763,10 @@ load_dotnet45() # 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 + if [ "${W_ARCH}" = "win64" ]; then + "${WINE}" reg add "HKLM\\Software\\Wow6432Node\\.NETFramework" /v OnlyUseLatestCLR /t REG_DWORD /d 0001 /f + fi + w_warn "Setting Windows version to 2003, otherwise applications using .NET 4.5 will subtly fail" w_set_winver win2k3