@@ -12873,9 +12873,11 @@ load_vcrun2015()
12873
12873
w_set_winver winxp
12874
12874
fi
12875
12875
12876
- # Setup will refuse to install ucrtbase because builtin's version number is higher, so manually replace it
12877
- # See https://bugs.winehq.org/show_bug.cgi?id=46317
12878
- w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/vcrun2015/vc_redist.x86.exe -F 'a10'
12876
+ # Setup will refuse to install msvcp140 & ucrtbase because builtin's version number is higher, so manually replace them
12877
+ # See https://bugs.winehq.org/show_bug.cgi?id=46317 and
12878
+ # https://bugs.winehq.org/show_bug.cgi?id=57518
12879
+ w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x86.exe -F 'a10'
12880
+ w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'msvcp140.dll'
12879
12881
w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'ucrtbase.dll'
12880
12882
12881
12883
w_try_cd "${W_CACHE}"/"${W_PACKAGE}"
@@ -12886,8 +12888,9 @@ load_vcrun2015()
12886
12888
# Also install the 64-bit version
12887
12889
# 2022/09/16: d7257265dbc0635c96dd67ddf938a09abe0866cb2d4fa05f8b758c8644e724e4
12888
12890
w_download https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc_redist.x64.exe d7257265dbc0635c96dd67ddf938a09abe0866cb2d4fa05f8b758c8644e724e4
12889
- # Also replace 64-bit ucrtbase.dll
12890
- w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/vcrun2015/vc_redist.x64.exe -F 'a10'
12891
+ # Also replace 64-bit msvcp140.dll & ucrtbase.dll
12892
+ w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x64.exe -F 'a10'
12893
+ w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win32/a10" -F 'msvcp140.dll'
12891
12894
w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win64/a10" -F 'ucrtbase.dll'
12892
12895
w_try_ms_installer "${WINE}" vc_redist.x64.exe ${W_OPT_UNATTENDED:+/q}
12893
12896
;;
@@ -12956,9 +12959,11 @@ load_vcrun2017()
12956
12959
w_set_winver winxp
12957
12960
fi
12958
12961
12959
- # Setup will refuse to install ucrtbase because builtin's version number is higher, so manually replace it
12960
- # See https://bugs.winehq.org/show_bug.cgi?id=46317
12961
- w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/vcrun2017/vc_redist.x86.exe -F 'a10'
12962
+ # Setup will refuse to install msvcp140 & ucrtbase because builtin's version number is higher, so manually replace them
12963
+ # See https://bugs.winehq.org/show_bug.cgi?id=46317 and
12964
+ # https://bugs.winehq.org/show_bug.cgi?id=57518
12965
+ w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x86.exe -F 'a10'
12966
+ w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'msvcp140.dll'
12962
12967
w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'ucrtbase.dll'
12963
12968
12964
12969
w_try_cd "${W_CACHE}/${W_PACKAGE}"
@@ -12973,8 +12978,9 @@ load_vcrun2017()
12973
12978
# 2019/08/14: 5b0cbb977f2f5253b1ebe5c9d30edbda35dbd68fb70de7af5faac6423db575b5
12974
12979
# 2024/10/17: 7cf24eba2bd67ea6229b7dd131e06f4e92ebefc06e36fe401cdd227d7ed78264
12975
12980
w_download https://aka.ms/vs/15/release/vc_redist.x64.exe 7cf24eba2bd67ea6229b7dd131e06f4e92ebefc06e36fe401cdd227d7ed78264
12976
- # Also replace 64-bit ucrtbase.dll
12977
- w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/vcrun2017/vc_redist.x64.exe -F 'a10'
12981
+ # Also replace 64-bit msvcp140.dll & ucrtbase.dll
12982
+ w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x64.exe -F 'a10'
12983
+ w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win64/a10" -F 'msvcp140.dll'
12978
12984
w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win64/a10" -F 'ucrtbase.dll'
12979
12985
w_try_ms_installer "${WINE}" vc_redist.x64.exe ${W_OPT_UNATTENDED:+/q}
12980
12986
;;
@@ -13022,6 +13028,11 @@ load_vcrun2019()
13022
13028
w_set_winver winxp
13023
13029
fi
13024
13030
13031
+ # Setup will refuse to install msvcp140 because the builtin's version number is higher, so manually replace it
13032
+ # See https://bugs.winehq.org/show_bug.cgi?id=57518
13033
+ w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x86.exe -F 'a10'
13034
+ w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'msvcp140.dll'
13035
+
13025
13036
w_try_cd "${W_CACHE}"/"${W_PACKAGE}"
13026
13037
w_try_ms_installer "${WINE}" vc_redist.x86.exe ${W_OPT_UNATTENDED:+/q}
13027
13038
@@ -13049,6 +13060,11 @@ load_vcrun2019()
13049
13060
w_override_dlls native,builtin vcruntime140_1
13050
13061
13051
13062
w_download https://aka.ms/vs/16/release/vc_redist.x64.exe 5d9999036f2b3a930f83b7fe3e2186b12e79ae7c007d538f52e3582e986a37c3
13063
+
13064
+ # Also replace 64-bit msvcp140.dll
13065
+ w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x64.exe -F 'a11'
13066
+ w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win64/a11" -F 'msvcp140.dll'
13067
+
13052
13068
w_try_ms_installer "${WINE}" vc_redist.x64.exe ${W_OPT_UNATTENDED:+/q}
13053
13069
;;
13054
13070
esac
@@ -13116,6 +13132,11 @@ load_vcrun2022()
13116
13132
13117
13133
w_download https://aka.ms/vs/17/release/vc_redist.x86.exe dd1a8be03398367745a87a5e35bebdab00fdad080cf42af0c3f20802d08c25d4
13118
13134
13135
+ # Setup will refuse to install msvcp140 because the builtin's version number is higher, so manually replace it
13136
+ # See https://bugs.winehq.org/show_bug.cgi?id=57518
13137
+ w_try_cabextract --directory="${W_TMP}/win32" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x86.exe -F 'a10'
13138
+ w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}/win32/a10" -F 'msvcp140.dll'
13139
+
13119
13140
w_try_cd "${W_CACHE}"/"${W_PACKAGE}"
13120
13141
w_try_ms_installer "${WINE}" vc_redist.x86.exe ${W_OPT_UNATTENDED:+/q}
13121
13142
@@ -13134,6 +13155,11 @@ load_vcrun2022()
13134
13155
w_override_dlls native,builtin vcruntime140_1
13135
13156
13136
13157
w_download https://aka.ms/vs/17/release/vc_redist.x64.exe 1821577409c35b2b9505ac833e246376cc68a8262972100444010b57226f0940
13158
+
13159
+ # Also replace 64-bit msvcp140.dll
13160
+ w_try_cabextract --directory="${W_TMP}/win64" "${W_CACHE}"/"${W_PACKAGE}"/vc_redist.x64.exe -F 'a11'
13161
+ w_try_cabextract --directory="${W_SYSTEM64_DLLS}" "${W_TMP}/win64/a11" -F 'msvcp140.dll'
13162
+
13137
13163
w_try_ms_installer "${WINE}" vc_redist.x64.exe ${W_OPT_UNATTENDED:+/q}
13138
13164
;;
13139
13165
esac
0 commit comments