Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b257eed

Browse files
committed
Closes 24584: Windows installer incorrectly detects CRT version on Windows 10
1 parent 80d0651 commit b257eed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,10 +2399,10 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
23992399
return FALSE;
24002400
}
24012401

2402-
// Check whether at least CRT v10.0.9924.0 is available.
2402+
// Check whether at least CRT v10.0.10137.0 is available.
24032403
// It should only be installed as a Windows Update package, which means
24042404
// we don't need to worry about 32-bit/64-bit.
2405-
LPCWSTR crtFile = L"api-ms-win-crt-runtime-l1-1-0.dll";
2405+
LPCWSTR crtFile = L"ucrtbase.dll";
24062406

24072407
DWORD cbVer = GetFileVersionInfoSizeW(crtFile, nullptr);
24082408
if (!cbVer) {
@@ -2427,7 +2427,7 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
24272427
BOOL result = FALSE;
24282428

24292429
if (VerQueryValueW(pData, L"\\", (LPVOID*)&ffi, &cb) &&
2430-
ffi->dwFileVersionMS == 0x000A0000 && ffi->dwFileVersionLS >= 0x26C40000) {
2430+
ffi->dwFileVersionMS == 0x000A0000 && ffi->dwFileVersionLS >= 0x27990000) {
24312431
result = TRUE;
24322432
}
24332433

0 commit comments

Comments
 (0)