Skip to content

Commit

Permalink
dotnet:Fix 64 bit rundll32.exe pop-up window
Browse files Browse the repository at this point in the history
Avoid a popup on WINEPREFIX updates, see https://bugs.winehq.org/show_bug.cgi?id=41727#c5
  • Loading branch information
zmtong1988 authored and austin987 committed Sep 19, 2024
1 parent 02a025d commit b8d145a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -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*) ;;
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b8d145a

Please sign in to comment.