This is an automated email from the ASF dual-hosted git repository.

leginee pushed a commit to branch aoo50x-win7-floor
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 5fc3737f605143cc3624a5c24ea0119031e396b1
Author: Peter <[email protected]>
AuthorDate: Thu Dec 3 06:35:35 2026 +0100

    docs: the Windows floor is Windows 7 SP1
    
    - external/vcredist: bundle the VS2019 (14.29) redistributable, the last
      that installs on Windows 7
    - win10-msvc/README.md: why the floor is Windows 7 SP1, what stays as it
      was, and what Windows 7 needs at install time
    
    (cherry picked from commit c34c9f813125780dafc52d725b4057487d838338)
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 main/external/vcredist/README | 37 +++++++++++++++++---------
 win10-msvc/README.md          | 62 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+), 12 deletions(-)

diff --git a/main/external/vcredist/README b/main/external/vcredist/README
index 1c81afe604..9ee16b48df 100644
--- a/main/external/vcredist/README
+++ b/main/external/vcredist/README
@@ -11,12 +11,16 @@ desktop/win32/source/setup/setup.cpp all refer to the 
vcredist_* spelling.
 
 Which ones
 ----------
-The Visual C++ v14 Redistributable (Visual Studio 2015-2022), latest version:
+The Visual C++ v14 Redistributable that ships with the Visual Studio 2019
+build tools used to compile the office (14.29.x, VS2019 16.11).  It is
+already on the build machine:
 
-    x86  https://aka.ms/vc14/vc_redist.x86.exe
-    x64  https://aka.ms/vc14/vc_redist.x64.exe
+    <VS2019>/VC/Redist/MSVC/14.29.30133/vc_redist.x86.exe
+    <VS2019>/VC/Redist/MSVC/14.29.30133/vc_redist.x64.exe
 
-These are permalinks that always resolve to the current v14 release.
+Do NOT take the "latest" permalinks (https://aka.ms/vc14/vc_redist.x64.exe):
+the current v14 releases no longer install on Windows 7 SP1, which is this
+build's floor -- see below.
 
 The rule is that the redistributable must be the same version as, or newer
 than, the MSVC build tools used to compile the office.  A v14 redistributable
@@ -34,11 +38,20 @@ runtime.
 
 Supported Windows versions
 --------------------------
-The current v14 redistributable supports Windows 10 and 11, and Windows Server
-2016 / 2019 / 2022 / 2025 -- it does not install on anything older.  That is
-what sets the minimum Windows version for a build made with a modern toolset;
-it is not an independent choice.
-
-If an older floor is ever needed, an older v14 servicing release has to be
-pinned here explicitly, and its own supported-OS list checked -- the v14 line
-has raised its floor over time.
+The office is built for Windows 7 SP1 (WINVER/_WIN32_WINNT 0x0601), and both
+setup.exe and the MSI launch condition enforce that floor.  The bundled
+redistributable must therefore install on Windows 7 SP1 too.
+
+The current v14 redistributable supports only Windows 10 and 11 and Windows
+Server 2016 and later -- it does not install on anything older.  The VS2019
+16.11 redistributable (14.29.x) still supports Windows 7 SP1, and because it
+matches the toolset it also satisfies "same version or newer".  If the
+toolset is ever raised, the redistributable has to move with it, and the new
+release's supported-OS list has to be checked against the floor -- the v14
+line has raised its floor over time.
+
+Check what is in this directory before building: the file version of
+vcredist_x64.exe must start with 14., not 9.0.  setup.exe runs it with the v14
+switches "/install /quiet /norestart"; the 2008 package does not understand
+them, fails, and setup.exe stops with "The Microsoft Visual C++ runtime could
+not be installed".
diff --git a/win10-msvc/README.md b/win10-msvc/README.md
index 7be6369716..b46fa7352a 100644
--- a/win10-msvc/README.md
+++ b/win10-msvc/README.md
@@ -247,6 +247,68 @@ Delivered as new `*.patch.ucrt` files listed after the 
existing
 `libxml2` needed nothing — 2.9.10 already guards its own `snprintf` shim on
 `_MSC_VER < 1900`. `nss` needed nothing either.
 
+## The Windows floor: Windows 7 SP1
+
+What a build runs on is no longer chosen by the old platform files: the VS2015+
+runtime does not install below Windows 7 SP1, and Python 3.11 cannot be built
+by VS2008, so trunk has no Windows XP or Windows 2000 build left. The platform
+settings still declared Windows 2000 (`WINVER`/`_WIN32_WINNT`/`_WIN32_IE`
+`0x0500`; gbuild declared no `_WIN32_WINNT` at all). They now declare what the
+result actually needs, with the values the Bazel build compiles and runs at:
+
+| | dmake (`wntmsci11.mk`, `wntmscx.mk`) and gbuild (`platform/windows.mk`) |
+| --- | --- |
+| `WINVER`, `_WIN32_WINNT` | `0x0601` (Windows 7) |
+| `_WIN32_IE` | not set — the SDK derives it per translation unit (`0x0800` at 
`0x0601`) |
+
+Not setting `_WIN32_IE` is load-bearing, and it is what the Bazel build does
+too. `sal/systools/win32/uwinapi`'s `CopyFileEx{A,W}.cpp` define
+`_WIN32_WINNT 0x0400` themselves, and the SDK rejects an NT4 `_WIN32_WINNT`
+next to an IE above 6.0 SP1 (`sdkddkver.h`: C1189 "_WIN32_WINNT settings
+conflicts with _WIN32_IE setting"); a derived value follows whatever the file
+ends up with.
+
+The floor is in the base files, not in `wntmsc14.mk`: there is no VC9 build of
+trunk left for a conditional to protect, so the "VC9 stays byte-identical"
+property of the overlay no longer covers these three defines.
+
+Kept as they were, on purpose:
+
+* **The GUI subsystem version** stays pinned to 5.02 (x64) / 5.01 (x86) in
+  `wntmsc14.mk`. It is *not* a floor setting: 6.00 makes Windows route drops
+  through the brokered drag-and-drop path, which AOO's drop targets fail
+  (drag-and-drop dead in Gallery, Calc and Draw).
+* **Modules that state their own value.** `fpicker` and
+  `sal/systools/win32/kill` replace it with `-U`/`-D`, `shell` adds a second
+  `-D`, `openssl` builds with its own flags — all lower than the floor, so
+  their code keeps using only what it did.
+
+**Python is where the floor is actually decided.** It builds from its own
+`PCbuild` projects, which no solenv define reaches, and upstream 3.9+ targets
+Windows 8: `PC/pyconfig.h` sets `Py_WINVER 0x0602`, and pythoncore links
+`pathcch.lib`, whose API set does not exist on Windows 7 — `python311.dll`
+would not even load there. `python-3.11.15-win7.patch` (Windows only) is the
+support the Bazel build already runs with: `Py_WINVER`/`Py_NTDDI` lowered to
+Windows 7; `PC/pathcch_win7.c` calls the real `PathCch*` functions from
+KernelBase where they exist and falls back to their documented behaviour on
+Windows 7; `PC/aoo_win7_compat.h` supplies the two Windows 8 `LCMAP_*`
+constants `_winapi.c` uses only to reject them. `_freeze_module` keeps
+`pathcch.lib`, since it only runs on the build machine.
+
+**The installer** refuses Windows 7 RTM and anything older
+(`LaunchCo.idt`, `OOO_LAUNCH_3`): `(VersionNT > 601) or (VersionNT = 601 and
+ServicePackLevel >= 1) or Installed`, the last term so that repair and removal
+still work.
+
+What Windows 7 SP1 additionally needs at install time is outside the build:
+the Universal C Runtime update (KB2999226) for the VS2015+ runtime, and
+KB2533623 for the `LOAD_LIBRARY_SEARCH_*` flags Python loads its modules with.
+And the runtime that ships must itself still support Windows 7 — the newest
+VC++ redistributables do not, so the toolset should be no newer than the
+runtime release shipped with it (see the staged-CRT gap below). Nothing here
+has been run on a real Windows 7 machine yet; only the compile-time floor is
+enforced.
+
 ## The old Platform SDK does not go away entirely
 
 `--with-frame-home` must keep pointing at the **Platform SDK v7.0**, whatever

Reply via email to