1For Windows we need the Visual C++ Redistributables. 2 3Copy them into this directory as: 4 5 vcredist_x86.exe 6 vcredist_x64.exe 7 8Note the names: Microsoft ships these as vc_redist.x86.exe / vc_redist.x64.exe, 9so they have to be renamed. configure, external/prj/d.lst, scp2 and 10desktop/win32/source/setup/setup.cpp all refer to the vcredist_* spelling. 11 12Which ones 13---------- 14The Visual C++ v14 Redistributable that ships with the Visual Studio 2019 15build tools used to compile the office (14.29.x, VS2019 16.11). It is 16already on the build machine: 17 18 <VS2019>/VC/Redist/MSVC/14.29.30133/vc_redist.x86.exe 19 <VS2019>/VC/Redist/MSVC/14.29.30133/vc_redist.x64.exe 20 21Do NOT take the "latest" permalinks (https://aka.ms/vc14/vc_redist.x64.exe): 22the current v14 releases no longer install on Windows 7 SP1, which is this 23build's floor -- see below. 24 25The rule is that the redistributable must be the same version as, or newer 26than, the MSVC build tools used to compile the office. A v14 redistributable 27covers anything built with the toolsets in Visual Studio 2017, 2019, 2022 or 282026, because they all share one runtime. 29 30Do NOT use the Visual C++ 2008 redistributable. This file used to point at 31https://www.microsoft.com/en-us/download/details.aspx?id=26368, which is the 32Visual Studio 2008 SP1 download (version 9.0.30729). Binaries built with a 33modern toolset import VCRUNTIME140.dll, VCRUNTIME140_1.dll, MSVCP140.dll and 34the UCRT; none of those are in the 2008 package, and the MSI ships no CRT of 35its own. Installing with the 2008 redistributable produces an office that 36cannot start on a machine which does not already happen to have the v14 37runtime. 38 39Supported Windows versions 40-------------------------- 41The office is built for Windows 7 SP1 (WINVER/_WIN32_WINNT 0x0601), and both 42setup.exe and the MSI launch condition enforce that floor. The bundled 43redistributable must therefore install on Windows 7 SP1 too. 44 45The current v14 redistributable supports only Windows 10 and 11 and Windows 46Server 2016 and later -- it does not install on anything older. The VS2019 4716.11 redistributable (14.29.x) still supports Windows 7 SP1, and because it 48matches the toolset it also satisfies "same version or newer". If the 49toolset is ever raised, the redistributable has to move with it, and the new 50release's supported-OS list has to be checked against the floor -- the v14 51line has raised its floor over time. 52 53Check what is in this directory before building: the file version of 54vcredist_x64.exe must start with 14., not 9.0. setup.exe runs it with the v14 55switches "/install /quiet /norestart"; the 2008 package does not understand 56them, fails, and setup.exe stops with "The Microsoft Visual C++ runtime could 57not be installed". 58