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

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

commit 884169dd8f998c183f3150055f4854ec71e168a3
Author: Peter <[email protected]>
AuthorDate: Thu Nov 5 06:02:44 2026 +0100

    build: remove the VC90 (VS2008) runtime layer
    
    Since the VC9 toolchains were retired (2026-11-01) every binary is built
    with VS2019 and imports vcruntime140 + the UCRT; a dependents scan of a
    staged VS2019 tree (291 exe/dll/pyd) found no msvcr90/msvcp90/msvcm90
    import.  Yet the build still staged the VC90 DLLs and declared
    Microsoft.VC90.CRT in manifests on soffice.exe, the build tools, the test
    exes and a few DLLs.  That dependency is dead weight at best; on a machine
    without the VS2008 redistributable it would keep soffice.exe from starting.
    
    Removed:
    - //main/external/msvcp90's BUILD file, its app/dll manifests and .rc
      files (crt_dlls, vc90_app_manifest, vc90_app_manifest_res,
      vc90_dll_manifest_res).  The user-supplied DLLs stay ignored as on trunk;
      README and .gitignore entries are back to their trunk form.
    - CRT + <exe>.manifest staging from idl/merge_rdb/java/rsc/localedata/
      help pipelines, gtest_test/staged_run_test, native_lib_dir, svidl and
      lngconvex bundles, testtools, and stage_install.bzl.
    - Embedded manifests from uno.exe, regview, regcompare, uno-skeletonmaker,
      autodoc, the test exes, jpipe/jpipx, officebean and the JNI test
      launcher/transport DLL.
    - The x86 soffice.exe/.bin manifests.
    
    Kept: soffice.exe's application manifest, now Common-Controls 6 only (visual
    styles).  No C runtime is staged; the VS2019 runtime comes from the VC++
    redistributable, as it already did.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .gitignore                                       |  13 +--
 build/rules/gtest_test.bzl                       |  66 ++++---------
 build/rules/help_pipeline.bzl                    |  20 +---
 build/rules/idl_pipeline.bzl                     |  26 +-----
 build/rules/java_pipeline.bzl                    |  19 +---
 build/rules/java_run_test.bzl                    |  16 ++--
 build/rules/lngconvex_rule.bzl                   |   2 +-
 build/rules/localedata_pipeline.bzl              |  24 +----
 build/rules/merge_rdb.bzl                        |  19 +---
 build/rules/native_lib_dir.bzl                   |  24 +----
 build/rules/rsc_pipeline.bzl                     |  21 +----
 main/.gitignore                                  |  12 +--
 main/autodoc/BUILD.bazel                         |  13 +--
 main/bean/BUILD.bazel                            |  12 +--
 main/binaryurp/BUILD.bazel                       |   5 +-
 main/bridges/BUILD.bazel                         |  52 ++---------
 main/bridges/test/java_uno/any/transport.rc      |   8 --
 main/bridges/test/jni_test_launcher.cxx          |  10 +-
 main/bridges/test/jni_test_launcher.rc           |   6 --
 main/comphelper/BUILD.bazel                      |   4 +-
 main/connectivity/BUILD.bazel                    |   6 --
 main/cppuhelper/BUILD.bazel                      |   4 +-
 main/cpputools/BUILD.bazel                       |  13 +--
 main/desktop/BUILD.bazel                         |  11 +--
 main/desktop/util/amd64/soffice.exe.manifest     |   5 -
 main/desktop/util/soffice.bin.manifest           |  15 ---
 main/desktop/util/soffice.exe.manifest           |  15 ---
 main/external/BUILD.bazel                        |   1 -
 main/external/msvcp90/BUILD.bazel                | 114 -----------------------
 main/external/msvcp90/README_msvcX90.dll         |   9 --
 main/external/msvcp90/amd64/vc90_app.manifest    |  17 ----
 main/external/msvcp90/vc90_app.manifest          |  17 ----
 main/external/msvcp90/vc90_app_manifest.rc       |  13 ---
 main/external/msvcp90/vc90_app_manifest_amd64.rc |   6 --
 main/external/msvcp90/vc90_dll_manifest.rc       |  25 -----
 main/external/msvcp90/vc90_dll_manifest_amd64.rc |   6 --
 main/idl/BUILD.bazel                             |  13 +--
 main/idl/util/amd64/svidl.exe.manifest           |   9 --
 main/idl/util/svidl.exe.manifest                 |   9 --
 main/jurt/BUILD.bazel                            |  23 +----
 main/registry/BUILD.bazel                        |  14 +--
 main/sal/sal_qa.bzl                              |   3 +-
 main/shell/BUILD.bazel                           |   8 +-
 main/shell/util/amd64/lngconvex.exe.manifest     |   9 --
 main/shell/util/lngconvex.exe.manifest           |   9 --
 main/staging/BUILD.bazel                         |  46 ++++-----
 main/staging/stage_install.bzl                   |  31 +-----
 main/testtools/BUILD.bazel                       |   3 -
 main/tools/BUILD.bazel                           |   2 +-
 main/unodevtools/BUILD.bazel                     |  14 +--
 50 files changed, 105 insertions(+), 737 deletions(-)

diff --git a/.gitignore b/.gitignore
index e6816fe69f..b8347dc719 100644
--- a/.gitignore
+++ b/.gitignore
@@ -67,18 +67,7 @@ TAGS
 # externals
 /main/external/dbghelp/*
 /main/external/gdiplus/*
-# VS2008 CRT redistributable — user-supplied, see
-# main/external/msvcp90/README_msvcX90.dll.  Only the Microsoft-shipped 
binaries
-# and their assembly manifests are ignored; the first-party Bazel build files 
in
-# that directory (BUILD.bazel, the vc90_app*.manifest application manifests and
-# the .rc files that embed them) ARE tracked.  This was a blanket
-# /main/external/msvcp90/* until 2026-08-01, which silently kept those build
-# files out of the repo.  Mirrored in main/.gitignore.
-/main/external/msvcp90/*.dll
-/main/external/msvcp90/amd64/*.dll
-/main/external/msvcp90/Microsoft.VC90.CRT.manifest
-/main/external/msvcp90/amd64/Microsoft.VC90.CRT.manifest
-/main/external/msvcp90/Microsoft.VC90.DebugCRT.manifest
+/main/external/msvcp90/*
 /main/external/msvcp100/*
 /main/external/unowinreg/unowinreg.dll
 /main/external/vcredist/*
diff --git a/build/rules/gtest_test.bzl b/build/rules/gtest_test.bzl
index 861093d411..23e6c4c6a9 100644
--- a/build/rules/gtest_test.bzl
+++ b/build/rules/gtest_test.bzl
@@ -1,18 +1,15 @@
 ###############################################################################
 # gtest_test — runnable GoogleTest target for the /MD MSVC toolchain.
 #
-# Problem: the custom VS2008 toolchain links /MD and embeds NO manifest, so a
-# bare cc_test .exe cannot launch under `bazel test`:
-#   * its runtime DLLs (sal3.dll, …) and the VC90 CRT (msvcr90.dll) are not
-#     beside the exe — `data` deps land in runfiles SUBDIRS, which the Windows
-#     loader does not search;
-#   * loose msvcr90.dll with no activation context raises R6034.
+# Problem: a bare cc_test .exe cannot launch under `bazel test`, because its
+# runtime DLLs (sal3.dll, …) are not beside the exe — `data` deps land in
+# runfiles SUBDIRS, which the Windows loader does not search.
 #
 # Solution (the test analog of //main/idl:svidl_bundle): stage the exe + all
-# runtime DLLs + the VC90 CRT assembly + an external "<exe>.manifest" into ONE
-# flat directory via ctx.actions.symlink, and make THAT staged exe the test
-# executable.  Co-located DLLs are found; the external manifest supplies the
-# CRT activation context (no R6034).
+# runtime DLLs into ONE flat directory via ctx.actions.symlink, and make THAT
+# staged exe the test executable.  Co-located DLLs are found.  The C runtime
+# (VS2019: vcruntime140 + the UCRT) loads by ordinary DLL search and needs no
+# manifest; the VS2008 toolchains' VC90 CRT assembly + manifests are gone.
 #
 # Usage:
 #   load("//build/rules:gtest_test.bzl", "gtest_test")
@@ -31,17 +28,6 @@
 
 load("@rules_cc//cc:defs.bzl", "cc_binary")
 
-_CRT = "//main/external/msvcp90:crt_dlls"
-_APP_MANIFEST = "//main/external/msvcp90:vc90_app_manifest"
-
-# VC90-CRT manifest compiled to a .res, linked into every test exe so it sits 
in
-# the image at RT_MANIFEST id 1.  The staged external <exe>.manifest below only
-# covers DLLs bound at process start; a test that osl_loadModule()s a UNO DLL
-# later (any cppu Mapping pulls in the C++/UNO bridge on demand) needs the CRT
-# activation context to still apply at that point, or the late load resolves
-# msvcr90 loose → R6034 → DllMain fails → exit 0xC0000142.
-_APP_MANIFEST_RES = "//main/external/msvcp90:vc90_app_manifest_res"
-
 def _windows_relpath(from_dir, to_dir):
     """Backslash relative path from one execroot-relative dir to another.
 
@@ -273,27 +259,17 @@ def _staged_gtest_test_impl(ctx):
     seen[staged_exe.basename] = True
     staged.append(staged_exe)
 
-    # Runtime DLLs + VC90 CRT (msvcr90/msvcp90/msvcm90 + 
Microsoft.VC90.CRT.manifest).
+    # Runtime DLLs.
     for f in ctx.files.runtime:
         stage(f)
 
-    # Companion helper exes (e.g. a child process the test spawns by name).
-    # Staged under their own basename + a matching <name>.exe.manifest so they
-    # too satisfy the VC90 CRT activation context when launched.
+    # Companion helper exes (e.g. a child process the test spawns by name),
+    # staged under their own basename.
     for c in ctx.attr.companions:
         cexe = c[DefaultInfo].files_to_run.executable
         co = ctx.actions.declare_file(d + "/" + cexe.basename)
         ctx.actions.symlink(output = co, target_file = cexe)
         staged.append(co)
-        cman = ctx.actions.declare_file(d + "/" + cexe.basename + ".manifest")
-        ctx.actions.symlink(output = cman, target_file = ctx.file.app_manifest)
-        staged.append(cman)
-
-    # External application manifest, named <exe>.manifest, declaring the VC90
-    # CRT dependency so the loader builds an activation context (no R6034).
-    man = ctx.actions.declare_file(d + "/" + ctx.label.name + ".exe.manifest")
-    ctx.actions.symlink(output = man, target_file = ctx.file.app_manifest)
-    staged.append(man)
 
     # A client/server test runs the SAME binary twice, so the background half 
is
     # staged a second time under its own name.  That is not cosmetic: it is 
what
@@ -305,9 +281,6 @@ def _staged_gtest_test_impl(ctx):
         srv = ctx.actions.declare_file(d + "/" + server_exe_name)
         ctx.actions.symlink(output = srv, target_file = ctx.executable.binary)
         staged.append(srv)
-        srvman = ctx.actions.declare_file(d + "/" + server_exe_name + 
".manifest")
-        ctx.actions.symlink(output = srvman, target_file = 
ctx.file.app_manifest)
-        staged.append(srvman)
 
     # data_tree — fixture files staged at an EXPLICIT relative path rather than
     # flat by basename (which is all `runtime` can express).  Needed whenever 
the
@@ -576,7 +549,6 @@ _staged_gtest_test = rule(
         "binary": attr.label(executable = True, cfg = "target", mandatory = 
True),
         "runtime": attr.label_list(allow_files = True),
         "companions": attr.label_list(cfg = "target"),
-        "app_manifest": attr.label(allow_single_file = True, default = 
_APP_MANIFEST),
         "run_in_staged_dir": attr.bool(default = False),
         "bin_layout": attr.bool(default = False),
         "office_connection": attr.bool(default = False),
@@ -592,7 +564,7 @@ _staged_gtest_test = rule(
 )
 
 # The staging rule above is NOT gtest-specific: it stages an arbitrary /MD exe 
+
-# runtime DLLs + VC90 CRT + external manifest into one flat dir and runs it as 
a
+# runtime DLLs into one flat dir and runs it as a
 # test (pass/fail = process exit code).  Exposed for non-gtest runnable tests,
 # e.g. bridges' inter_libs_exc (a cross-DLL C++ exception smoke test whose exe
 # loads two sibling DLLs and exits 0 iff exception propagation works), and
@@ -658,7 +630,7 @@ def gtest_test(
     test; build time is not a reason to skip wiring something.
 
     companions: helper exes the test spawns by name (a child process). Staged
-    beside the exe with their own external CRT manifest.
+    beside the exe.
 
     bin_layout: stage into "<name>.run/bin" instead of "<name>.run", for suites
     that derive the helper's directory as <parent-of-own-dir>/bin (see the
@@ -685,7 +657,7 @@ def gtest_test(
     $(RUNDIR) / $(PROGRAM) / $(SCRATCH) / $(SCRATCH_URL) — see _TOKENS.
     prerun exists for fixtures that can only be BUILT at run time: a registry a
     UNO tool has to write, for instance, where doing it as a build action would
-    mean bundling that tool with its own CRT manifest and DLL closure, and 
would
+    mean bundling that tool with its own DLL closure, and would
     bake an absolute bazel-out path into a cached artifact.
     NOTE an env value that the test reads back through rtl::Bootstrap::get()
     goes through macro expansion, so its backslashes must be DOUBLED; one read
@@ -710,20 +682,16 @@ def gtest_test(
         # mangle differently → LNK2019.
         copts = ["/Zc:wchar_t-"] + copts,
         defines = defines,
-        # /MANIFEST:NO keeps the LINKER from generating one; the .res supplies
-        # the manifest as a resource instead (see _APP_MANIFEST_RES).
-        additional_linker_inputs = additional_linker_inputs + 
[_APP_MANIFEST_RES],
-        linkopts = linkopts + [
-            "$(execpath %s)" % _APP_MANIFEST_RES,
-            "/MANIFEST:NO",
-        ],
+        # /MANIFEST:NO as everywhere else: the exe needs no manifest.
+        additional_linker_inputs = additional_linker_inputs,
+        linkopts = linkopts + ["/MANIFEST:NO"],
         testonly = True,
         **kwargs
     )
     _staged_gtest_test(
         name = name,
         binary = ":" + name + "_bin",
-        runtime = runtime_dlls + data_files + [_CRT],
+        runtime = runtime_dlls + data_files,
         companions = companions,
         run_in_staged_dir = bool(data_files) or bin_layout,
         bin_layout = bin_layout,
diff --git a/build/rules/help_pipeline.bzl b/build/rules/help_pipeline.bzl
index abf5ea0312..2898f716f9 100644
--- a/build/rules/help_pipeline.bzl
+++ b/build/rules/help_pipeline.bzl
@@ -125,20 +125,16 @@ help_trees = rule(
 _IDXL_FILES = ["_0.cfs", "_0.cfx", "segments.gen", "segments_2"]
 
 def _stage_helplinker(ctx):
-    """Tool dir: HelpLinker.exe + sal3.dll + CRT + an external manifest.
+    """Tool dir: HelpLinker.exe + sal3.dll and the other tool DLLs.
 
     Returns (helplinker, all staged files)."""
     tools_prefix = ctx.label.name + "_tools/"
     staged = []
     for f, name in [(ctx.executable._helplinker, "HelpLinker.exe")] + \
-                   [(getattr(ctx.file, a), n) for a, n in _TOOL_DLLS] + \
-                   [(f, f.basename) for f in ctx.files._crt_dlls]:
+                   [(getattr(ctx.file, a), n) for a, n in _TOOL_DLLS]:
         out = ctx.actions.declare_file(tools_prefix + name)
         ctx.actions.symlink(output = out, target_file = f)
         staged.append(out)
-    manifest = ctx.actions.declare_file(tools_prefix + 
"HelpLinker.exe.manifest")
-    ctx.actions.symlink(output = manifest, target_file = 
ctx.file._app_manifest)
-    staged.append(manifest)
     return staged[0], staged
 
 def _help_module_impl(ctx):
@@ -246,12 +242,6 @@ help_module = rule(
             cfg = "exec",
         ),
         "_sal_dll": attr.label(default = "//main/sal:sal", allow_single_file = 
True, cfg = "exec"),
-        "_crt_dlls": attr.label(default = "//main/external/msvcp90:msvcp90", 
allow_files = True, cfg = "exec"),
-        "_app_manifest": attr.label(
-            default = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg = "exec",
-        ),
         "_indexer": attr.label(
             default = "//main/l10ntools:HelpIndexerTool_deploy.jar",
             allow_single_file = True,
@@ -345,12 +335,6 @@ help_extension = rule(
             cfg = "exec",
         ),
         "_sal_dll": attr.label(default = "//main/sal:sal", allow_single_file = 
True, cfg = "exec"),
-        "_crt_dlls": attr.label(default = "//main/external/msvcp90:msvcp90", 
allow_files = True, cfg = "exec"),
-        "_app_manifest": attr.label(
-            default = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg = "exec",
-        ),
         "_indexer": attr.label(
             default = "//main/l10ntools:HelpIndexerTool_deploy.jar",
             allow_single_file = True,
diff --git a/build/rules/idl_pipeline.bzl b/build/rules/idl_pipeline.bzl
index 9ff369c53a..f5d685f647 100644
--- a/build/rules/idl_pipeline.bzl
+++ b/build/rules/idl_pipeline.bzl
@@ -16,9 +16,8 @@ We create a symlink named sal3.dll alongside sal.dll in the 
staging directory.
 idlc finds ucpp.exe by replacing "idlc" in its own executable path with
 "ucpp.exe", so ucpp must be staged alongside idlc.
 
-The VS2008 CRT DLLs (msvcr90.dll, msvcp90.dll, msvcm90.dll) and their
-manifest are checked in under //main/external/msvcp90 and staged alongside
-the executables so the CRT assembly is found as a local deployment.
+No C runtime is staged: the tools are built with the VS2019 toolset and load
+vcruntime140/the UCRT by ordinary DLL search, which needs no manifest.
 
 IDL compilation strategy — one action per file, mirrored subdirs:
   idlc is called once per .idl file (matching the original dmake/gbuild
@@ -55,8 +54,6 @@ def _idl_library_impl(ctx):
     cppumaker = ctx.executable._cppumaker
 
     dll_files = [getattr(ctx.file, attr) for attr, _ in _DLL_RENAME]
-    crt_files = ctx.files._crt_dlls
-    app_manifest = ctx.file._app_manifest
 
     # Build rename map: source File -> runtime filename
     rename = {}
@@ -66,7 +63,7 @@ def _idl_library_impl(ctx):
     # ── Stage all tools + DLLs into one flat directory ───────────────────
     # ctx.actions.symlink is a pure Bazel operation (hardlink on Windows) —
     # no shell, bash, or cmd.exe involved.
-    all_to_stage = [idlc, ucpp, regmerge, cppumaker] + dll_files + crt_files
+    all_to_stage = [idlc, ucpp, regmerge, cppumaker] + dll_files
     staged = {}
     for f in all_to_stage:
         dst_name = rename.get(f, f.basename)
@@ -74,13 +71,6 @@ def _idl_library_impl(ctx):
         ctx.actions.symlink(output = out, target_file = f)
         staged[dst_name] = out
 
-    # Stage an external application manifest for each EXE so Windows finds
-    # the VC90 CRT assembly without needing mt.exe to embed it.
-    for exe in ["idlc.exe", "ucpp.exe", "regmerge.exe", "cppumaker.exe"]:
-        out = ctx.actions.declare_file(ctx.label.name + "_tools/" + exe + 
".manifest")
-        ctx.actions.symlink(output = out, target_file = app_manifest)
-        staged[exe + ".manifest"] = out
-
     tools_dir    = staged["idlc.exe"].dirname
     all_staged   = list(staged.values())
 
@@ -277,15 +267,5 @@ idl_library = rule(
             allow_single_file = True,
             cfg               = "exec",
         ),
-        "_crt_dlls": attr.label(
-            default     = "//main/external/msvcp90:msvcp90",
-            allow_files = True,
-            cfg         = "exec",
-        ),
-        "_app_manifest": attr.label(
-            default           = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg               = "exec",
-        ),
     },
 )
diff --git a/build/rules/java_pipeline.bzl b/build/rules/java_pipeline.bzl
index 0f13a5dbc0..c4d451d3df 100644
--- a/build/rules/java_pipeline.bzl
+++ b/build/rules/java_pipeline.bzl
@@ -29,15 +29,13 @@ def _javamaker_impl(ctx):
     javamaker = ctx.executable._javamaker
 
     dll_files    = [getattr(ctx.file, attr) for attr, _ in _DLL_RENAME]
-    crt_files    = ctx.files._crt_dlls
-    app_manifest = ctx.file._app_manifest
 
     rename = {}
     for attr, runtime_name in _DLL_RENAME:
         rename[getattr(ctx.file, attr)] = runtime_name
 
     # ── Stage javamaker.exe + all runtime DLLs ───────────────────────────
-    all_to_stage = [javamaker] + dll_files + crt_files
+    all_to_stage = [javamaker] + dll_files
     staged = {}
     for f in all_to_stage:
         dst_name = rename.get(f, f.basename)
@@ -45,11 +43,6 @@ def _javamaker_impl(ctx):
         ctx.actions.symlink(output = out, target_file = f)
         staged[dst_name] = out
 
-    # Side-car .manifest so Windows finds the VC90 CRT assembly
-    out = ctx.actions.declare_file(ctx.label.name + 
"_tools/javamaker.exe.manifest")
-    ctx.actions.symlink(output = out, target_file = app_manifest)
-    staged["javamaker.exe.manifest"] = out
-
     tools_dir  = staged["javamaker.exe"].dirname
     all_staged = list(staged.values())
 
@@ -131,16 +124,6 @@ javamaker_classes = rule(
             allow_single_file = True,
             cfg               = "exec",
         ),
-        "_crt_dlls": attr.label(
-            default     = "//main/external/msvcp90:msvcp90",
-            allow_files = True,
-            cfg         = "exec",
-        ),
-        "_app_manifest": attr.label(
-            default           = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg               = "exec",
-        ),
     },
     doc = """
 Run javamaker.exe on a UNO type registry (.rdb) to produce Java .class files.
diff --git a/build/rules/java_run_test.bzl b/build/rules/java_run_test.bzl
index 14de43765c..77174e2c00 100644
--- a/build/rules/java_run_test.bzl
+++ b/build/rules/java_run_test.bzl
@@ -1,14 +1,12 @@
 """staged_java_test — run a native-bridge JVM test via an in-process JVM host.
 
-A JNI bridge test loads 32-bit /MD UNO DLLs that need a VC90-CRT activation
-context for every load — including the ones the UNO machinery loads at runtime
-via osl::Module. A stock java.exe provides no such context (R6034). So instead 
of
-running java.exe directly, this rule runs jni_test_launcher.exe, which carries 
the
-VC90-CRT manifest embedded and hosts the JVM in-process: its process-default
-activation context covers every UNO DLL the JVM loads.
+This rule runs jni_test_launcher.exe, which hosts the JVM in-process, instead
+of java.exe.  It was introduced for the VS2008 build, whose UNO DLLs needed a
+VC90-CRT activation context that only an embedded launcher manifest could give
+every runtime load (a stock java.exe has none: R6034).  The VS2019 runtime
+needs no activation context; the launcher remains as the JVM host.
 
-The launcher lives inside library_dir (co-located with the UNO DLLs + the CRT 
SxS
-assembly). The emitted .bat puts the JDK dirs and library_dir on PATH (so 
jvm.dll
+The launcher lives inside library_dir (co-located with the UNO DLLs). The 
emitted .bat puts the JDK dirs and library_dir on PATH (so jvm.dll
 and the DLLs' transitive deps resolve) and runs the launcher with the 
classpath,
 java.library.path and main class. Requires build --enable_runfiles.
 
@@ -62,7 +60,7 @@ staged_java_test = rule(
         ),
         "library_dir": attr.label(
             allow_single_file = True,
-            doc = "native_lib_dir tree artifact: UNO DLLs + CRT SxS assembly + 
the launcher exe.",
+            doc = "native_lib_dir tree artifact: UNO DLLs + the launcher exe.",
         ),
         "launcher_name": attr.string(
             default = "jni_test_launcher.exe",
diff --git a/build/rules/lngconvex_rule.bzl b/build/rules/lngconvex_rule.bzl
index f656de3a81..eceb24f052 100644
--- a/build/rules/lngconvex_rule.bzl
+++ b/build/rules/lngconvex_rule.bzl
@@ -34,7 +34,7 @@ LngconvexBundleInfo = provider(
     fields = {
         "exe":       "The staged lngconvex.exe File",
         "tools_dir": "execroot-relative directory to set as PATH when running 
lngconvex",
-        "files":     "All staged File objects (exe + DLLs + manifest)",
+        "files":     "All staged File objects (exe + DLLs)",
     },
 )
 
diff --git a/build/rules/localedata_pipeline.bzl 
b/build/rules/localedata_pipeline.bzl
index 5d54832ecc..b1259c7267 100644
--- a/build/rules/localedata_pipeline.bzl
+++ b/build/rules/localedata_pipeline.bzl
@@ -65,8 +65,6 @@ def _localedata_gen_impl(ctx):
     types_rdb    = ctx.file.types_rdb
     perl         = ctx.file._perl
     wrapper      = ctx.file._run_saxparser
-    crt_files    = ctx.files._crt_dlls
-    app_manifest = ctx.file._app_manifest
 
     rename = {}
     for attr, runtime in _DLL_RENAME:
@@ -76,8 +74,8 @@ def _localedata_gen_impl(ctx):
     bridge_dll = getattr(ctx.file, _BRIDGE_ATTR)
     dll_files.append(bridge_dll)
 
-    # ── Stage saxparser.exe + DLLs + CRT into one flat tools dir 
──────────────
-    all_to_stage = [saxparser] + dll_files + crt_files
+    # ── Stage saxparser.exe + DLLs into one flat tools dir 
────────────────────
+    all_to_stage = [saxparser] + dll_files
     staged = {}
     for f in all_to_stage:
         dst = rename.get(f, f.basename)
@@ -85,14 +83,6 @@ def _localedata_gen_impl(ctx):
         ctx.actions.symlink(output = out, target_file = f)
         staged[dst] = out
 
-    # External application manifest so Windows resolves the VC90 CRT assembly
-    # for saxparser.exe without mt.exe embedding (same trick as idl_pipeline).
-    sax_manifest = ctx.actions.declare_file(
-        ctx.label.name + "_tools/saxparser.exe.manifest",
-    )
-    ctx.actions.symlink(output = sax_manifest, target_file = app_manifest)
-    staged["saxparser.exe.manifest"] = sax_manifest
-
     sax_exe    = staged["saxparser.exe"]
     tools_dir  = sax_exe.dirname
     all_staged = staged.values()
@@ -164,16 +154,6 @@ localedata_gen = rule(
         # x64 host it resolves mscx_uno and never pulls the x86-only msci_uno 
into
         # the exec config.  Staged under its real basename (see _DLL_RENAME).
         "_cpp_uno_bridge": attr.label(default = 
"//main/bridges:cpp_uno_bridge",     allow_single_file = True, cfg = "exec"),
-        "_crt_dlls": attr.label(
-            default = "//main/external/msvcp90:msvcp90",
-            allow_files = True,
-            cfg = "exec",
-        ),
-        "_app_manifest": attr.label(
-            default = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg = "exec",
-        ),
         "_perl": attr.label(
             default = "@strawberry-perl//:perl_exe",
             allow_single_file = True,
diff --git a/build/rules/merge_rdb.bzl b/build/rules/merge_rdb.bzl
index 5a5c4c7f2d..17446ed3c6 100644
--- a/build/rules/merge_rdb.bzl
+++ b/build/rules/merge_rdb.bzl
@@ -31,7 +31,7 @@ def _merge_rdb_impl(ctx):
 
     all_to_stage = [ctx.executable._regmerge] + [
         getattr(ctx.file, attr) for attr, _ in _DLL_RENAME
-    ] + ctx.files._crt_dlls
+    ]
 
     staged = {}
     for f in all_to_stage:
@@ -40,13 +40,6 @@ def _merge_rdb_impl(ctx):
         ctx.actions.symlink(output = out, target_file = f)
         staged[dst_name] = out
 
-    # Stage external .manifest for regmerge.exe so Windows finds the VC90 CRT.
-    manifest_out = ctx.actions.declare_file(
-        ctx.label.name + "_tools/regmerge.exe.manifest"
-    )
-    ctx.actions.symlink(output = manifest_out, target_file = 
ctx.file._app_manifest)
-    staged["regmerge.exe.manifest"] = manifest_out
-
     tools_dir  = staged["regmerge.exe"].dirname
     all_staged = list(staged.values())
 
@@ -104,15 +97,5 @@ merge_rdb = rule(
             allow_single_file = True,
             cfg               = "exec",
         ),
-        "_crt_dlls": attr.label(
-            default     = "//main/external/msvcp90:msvcp90",
-            allow_files = True,
-            cfg         = "exec",
-        ),
-        "_app_manifest": attr.label(
-            default           = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg               = "exec",
-        ),
     },
 )
diff --git a/build/rules/native_lib_dir.bzl b/build/rules/native_lib_dir.bzl
index 650812ed1d..a40fab46e8 100644
--- a/build/rules/native_lib_dir.bzl
+++ b/build/rules/native_lib_dir.bzl
@@ -2,26 +2,20 @@
 
 A JNI test loads its native library at runtime: System.loadLibrary(name) 
resolves
 it by name from java.library.path, and the Windows loader then resolves that 
DLL's
-transitive deps from its own directory. So all of a JNI test's native libs 
(plus
-the VC90 CRT) must be co-located in a single directory. Bazel `data` scatters 
them
-across per-package dirs; this rule copies the given DLLs/manifests into one 
tree
+transitive deps from its own directory. So all of a JNI test's native libs
+must be co-located in a single directory. Bazel `data` scatters them
+across per-package dirs; this rule copies the given DLLs/exes into one tree
 artifact that java_test points -Djava.library.path at via $(location).
 """
 
 def _native_lib_dir_impl(ctx):
     out = ctx.actions.declare_directory(ctx.label.name)
-    files = [f for f in ctx.files.dlls if f.extension in ("dll", "manifest", 
"exe")]
+    files = [f for f in ctx.files.dlls if f.extension in ("dll", "exe")]
     inputs = list(files)
     cmds = [
         'mkdir -p "%s"' % out.path,
         'cp %s "%s/"' % (" ".join(['"%s"' % f.path for f in files]), out.path),
     ]
-    # Optional external <dll>.manifest: gives the named DLL a VC90-CRT 
activation
-    # context when it is loaded into a foreign process (e.g. a JVM), so the CRT
-    # resolves via the co-located SxS assembly instead of loose (avoids R6034).
-    if ctx.file.app_manifest and ctx.attr.manifest_as:
-        inputs.append(ctx.file.app_manifest)
-        cmds.append('cp "%s" "%s/%s"' % (ctx.file.app_manifest.path, out.path, 
ctx.attr.manifest_as))
     ctx.actions.run_shell(
         inputs = inputs,
         outputs = [out],
@@ -36,15 +30,7 @@ native_lib_dir = rule(
     attrs = {
         "dlls": attr.label_list(
             allow_files = True,
-            doc = "DLL / CRT-manifest providing targets to co-locate in one 
dir.",
-        ),
-        "app_manifest": attr.label(
-            allow_single_file = True,
-            doc = "Optional manifest to copy in under manifest_as (e.g. the 
VC90-CRT app manifest).",
-        ),
-        "manifest_as": attr.string(
-            default = "",
-            doc = "Filename to give app_manifest, e.g. 
'<primary_dll>.dll.manifest'.",
+            doc = "DLL / exe providing targets to co-locate in one dir.",
         ),
     },
 )
diff --git a/build/rules/rsc_pipeline.bzl b/build/rules/rsc_pipeline.bzl
index 6ce2967fba..09e77583a9 100644
--- a/build/rules/rsc_pipeline.bzl
+++ b/build/rules/rsc_pipeline.bzl
@@ -25,7 +25,6 @@ Step 2 — Rsc2Compile (one action for all .srs):
 Tool staging follows the same pattern as idl_pipeline.bzl:
   - rscpp.exe and rsc2.exe are staged into <name>_tools/ with all DLLs.
   - sal.dll is staged under the name sal3.dll (the LIBRARY name in its DEF).
-  - VS2008 CRT DLLs + a .manifest file are staged alongside each EXE.
   - Images are staged FLAT into the same <name>_tools/ directory so that
     -lip=tools_dir finds them by basename without any subdirectory issues.
   - env = {"PATH": tools_dir} lets the Windows DLL loader find everything.
@@ -96,20 +95,13 @@ def _rsc_res_impl(ctx):
     tools_prefix = ctx.label.name + "_tools/"
     staged = {}
 
-    all_to_stage = [rscpp, rsc2] + [getattr(ctx.file, a) for a, _ in 
_DLL_RENAME] + ctx.files._crt_dlls
+    all_to_stage = [rscpp, rsc2] + [getattr(ctx.file, a) for a, _ in 
_DLL_RENAME]
     for f in all_to_stage:
         dst_name = rename.get(f, f.basename)
         out = ctx.actions.declare_file(tools_prefix + dst_name)
         ctx.actions.symlink(output = out, target_file = f)
         staged[dst_name] = out
 
-    # Stage manifests for rscpp.exe and rsc2.exe so Windows finds VS2008 CRT.
-    manifest_src = ctx.file._app_manifest
-    for exe in ["rscpp.exe", "rsc2.exe"]:
-        out = ctx.actions.declare_file(tools_prefix + exe + ".manifest")
-        ctx.actions.symlink(output = out, target_file = manifest_src)
-        staged[exe + ".manifest"] = out
-
     tools_dir = staged["rscpp.exe"].dirname
 
     # ── Stage image files into tools_dir ─────────────────────────────────
@@ -426,17 +418,6 @@ rsc_res = rule(
             allow_single_file = True,
             cfg               = "exec",
         ),
-        # ── CRT and manifest ─────────────────────────────────────────────
-        "_crt_dlls": attr.label(
-            default     = "//main/external/msvcp90:msvcp90",
-            allow_files = True,
-            cfg         = "exec",
-        ),
-        "_app_manifest": attr.label(
-            default           = "//main/external/msvcp90:vc90_app_manifest",
-            allow_single_file = True,
-            cfg               = "exec",
-        ),
     },
     doc = "Compile .src resource files to a .res binary via rscpp (preprocess) 
+ rsc2 (compile).",
 )
diff --git a/main/.gitignore b/main/.gitignore
index 9993c94c5b..d983cbea87 100644
--- a/main/.gitignore
+++ b/main/.gitignore
@@ -58,17 +58,7 @@ TAGS
 # externals
 /external/unowinreg/unowinreg.dll
 
-# VS2008 CRT redistributable — user-supplied, see 
external/msvcp90/README_msvcX90.dll.
-# Only the Microsoft-shipped binaries and their assembly manifests are ignored;
-# the first-party Bazel build files in that directory (BUILD.bazel, the
-# vc90_app*.manifest application manifests and the .rc files that embed them)
-# ARE tracked.  This was a blanket /external/msvcp90/* until 2026-08-01, which
-# silently kept those build files out of the repo.
-/external/msvcp90/*.dll
-/external/msvcp90/amd64/*.dll
-/external/msvcp90/Microsoft.VC90.CRT.manifest
-/external/msvcp90/amd64/Microsoft.VC90.CRT.manifest
-/external/msvcp90/Microsoft.VC90.DebugCRT.manifest
+/external/msvcp90/*
 
 # $INPATH output directories
 /*/unxfbsd?
diff --git a/main/autodoc/BUILD.bazel b/main/autodoc/BUILD.bazel
index b00e2e3b87..a5ecb2d14c 100644
--- a/main/autodoc/BUILD.bazel
+++ b/main/autodoc/BUILD.bazel
@@ -6,9 +6,8 @@ load("@rules_cc//cc:defs.bzl", "cc_binary")
 # sal/osl, so despite the build.lst ordering dep it links no first-party DLL --
 # only the systemstl shim (gbuild's `stl`).
 #
-# Two consumers, so it carries the VC90-CRT manifest embedded at RT_MANIFEST
-# id 1 (like uno-skeletonmaker/regcompare): the odk gendocu build step runs it,
-# and odk pack/copying ships it in the SDK's bin/.
+# Two consumers: the odk gendocu build step runs it, and odk pack/copying ships
+# it in the SDK's bin/.
 #
 # Not yet wired anywhere: gendocu (odk) is the first consumer and is the next
 # step.  See readme.md.
@@ -100,11 +99,5 @@ cc_binary(
         "WIN32",
     ],
     deps = ["//main/stlport:stlport"],
-    # SDK bin/ tool (and a build tool run without a staged external manifest),
-    # so it embeds its own VC90-CRT activation context.
-    additional_linker_inputs = 
["//main/external/msvcp90:vc90_app_manifest_res"],
-    linkopts = [
-        "$(execpath //main/external/msvcp90:vc90_app_manifest_res)",
-        "/MANIFEST:NO",
-    ],
+    linkopts = ["/MANIFEST:NO"],
 )
diff --git a/main/bean/BUILD.bazel b/main/bean/BUILD.bazel
index 9f46654bf5..999eb8537a 100644
--- a/main/bean/BUILD.bazel
+++ b/main/bean/BUILD.bazel
@@ -47,17 +47,13 @@ uno_jar(
 # __stdcall on Win32, so otherwise they leave as _Java_…@N (same trick as
 # //main/jurt jpipe.def).
 #
-# RT_MANIFEST id 2 IS needed, unlike //main/connectivity:hsqldb.  This DLL is
-# loaded by the EMBEDDING application's JVM — a stock java.exe with no VC90
-# activation context — not by a JVM running inside soffice.exe.  Without its
-# own manifest MSVCR90.dll is unresolvable and System.loadLibrary reports only
-# "Can't find dependent libraries".  Same reason as jpipe/jpipx.
+# This DLL is loaded by the EMBEDDING application's JVM (a stock java.exe), not
+# by a JVM inside soffice.exe.  Built with VS2008 it therefore embedded its own
+# VC90-CRT manifest (RT_MANIFEST id 2); the VS2019 runtime needs none.
 #
 # jawt comes from //build/third_party/jawt, an import library built from the
 # JDK's own header rather than a machine-installed JDK's lib/jawt.lib; see the
 # note there for why a DEF-generated one would be wrong on x86.
-_DLL_MANIFEST_RES = "//main/external/msvcp90:vc90_dll_manifest_res"
-
 cc_binary(
     name = "officebean",
     srcs = [
@@ -71,11 +67,9 @@ cc_binary(
     deps = ["//build/third_party/jawt:jawt_headers"],
     additional_linker_inputs = [
         "//build/third_party/jawt:jawt_implib",
-        _DLL_MANIFEST_RES,
     ],
     linkopts = [
         "$(execpath //build/third_party/jawt:jawt_implib)",
-        "$(execpath %s)" % _DLL_MANIFEST_RES,
         "user32.lib", "/MANIFEST:NO",
     ],
 )
diff --git a/main/binaryurp/BUILD.bazel b/main/binaryurp/BUILD.bazel
index 04cc970a5f..a3b4bb55f9 100644
--- a/main/binaryurp/BUILD.bazel
+++ b/main/binaryurp/BUILD.bazel
@@ -120,8 +120,9 @@ gtest_test(
     ],
     # msci_uno/mscx_uno: nothing links it, but cppu osl_loadModule()s the
     # C++↔UNO bridge on demand from any Mapping (getCaughtException, proxy
-    # marshalling).  Unstaged ⇒ a stray copy off PATH loads its CRT outside
-    # this exe's activation context ⇒ R6034 ⇒ exit 0xC0000142.
+    # marshalling).  Unstaged ⇒ the loader takes a stray copy off PATH, from
+    # some other build (with the old VC90 runtime that was R6034 ⇒ exit
+    # 0xC0000142).
     runtime_dlls = [
         "//main/sal:sal3",
         "//main/salhelper:salhelper3MSC",
diff --git a/main/bridges/BUILD.bazel b/main/bridges/BUILD.bazel
index 5aadd1dccd..5251ec3591 100644
--- a/main/bridges/BUILD.bazel
+++ b/main/bridges/BUILD.bazel
@@ -7,7 +7,6 @@ load("//build/rules:idl_pipeline.bzl", "idl_library")
 load("//build/rules:java_pipeline.bzl", "javamaker_classes", 
"jar_from_directory", "uno_jar")
 load("//build/rules:native_lib_dir.bzl", "native_lib_dir")
 load("//build/rules:java_run_test.bzl", "staged_java_test")
-load("@vs_config//:paths.bzl", "RC_EXE")
 
 _COPTS = [
     "/Zm500", "/Zc:forScope", "/GR", "/nologo", "/Gs",
@@ -402,7 +401,7 @@ cc_binary(
     ],
 )
 
-# Stage inter.exe + starter.dll + thrower.dll + sal3/cppu3 + CRT into one dir 
and
+# Stage inter.exe + starter.dll + thrower.dll + sal3/cppu3 into one dir and
 # run it; passes iff it exits 0 (exception caught, no crash).
 staged_run_test(
     name = "inter_libs_exc_test",
@@ -461,30 +460,14 @@ gtest_test(
 # ═══════════════════════════════════════════════════════════════════════════
 # jni_test_launcher — in-process JVM host for native-bridge tests
 # ═══════════════════════════════════════════════════════════════════════════
-# Carries the VC90-CRT manifest embedded (id 1) so the *process* has the CRT
-# activation context that covers the UNO DLLs the JVM loads at runtime (R6034 
fix).
-genrule(
-    name = "launcher_manifest_res",
-    srcs = [
-        "test/jni_test_launcher.rc",
-        "//main/external/msvcp90:vc90_app_manifest",
-    ],
-    outs = ["jni_test_launcher.res"],
-    cmd_bat = (
-        "set \"_RC=" + RC_EXE + "\"&&" +
-        "\"!_RC!\" /nologo /I \"main/external/msvcp90\"" +
-        " /fo \"$(OUTS)\" \"$(location test/jni_test_launcher.rc)\""
-    ),
-)
-
+# It used to embed the VC90-CRT manifest for the CRT activation context; the
+# VS2019 runtime needs none (see the comment in the source).
 cc_binary(
     name = "jni_test_launcher",
     srcs = ["test/jni_test_launcher.cxx"],
     copts = ["/EHsc", "/GR", "/nologo", "/Zc:wchar_t-"],
     defines = ["WNT", "WIN32", "INTEL", "_X86_=1"],
     deps = ["@rules_java//toolchains:jni"],
-    additional_linker_inputs = [":launcher_manifest_res"],
-    linkopts = ["$(execpath :launcher_manifest_res)"],
 )
 
 # ═══════════════════════════════════════════════════════════════════════════
@@ -541,12 +524,12 @@ java_library(
     ],
 )
 
-# 5a. All native libs (bridge + UNO/sal + VC90 CRT) co-located in one dir so 
the
+# 5a. All native libs (bridge + UNO/sal) co-located in one dir so the
 #     JVM's System.loadLibrary + the Windows loader resolve them and their 
deps.
 native_lib_dir(
     name = "test_any_libs",
     dlls = [
-        ":jni_test_launcher",  # in-process JVM host, co-located so its CRT 
resolves here too
+        ":jni_test_launcher",  # in-process JVM host, co-located with the DLLs
         ":test_javauno_any",
         ":java_uno",   # uno↔java bridge + registers the "java" UNO environment
         ":msci_uno",   # cpp↔uno bridge + registers the "msci" C++ UNO 
environment
@@ -557,11 +540,7 @@ native_lib_dir(
         "//main/jvmaccess:jvmaccess3MSC",
         "//main/registry:reg",
         "//main/store:store",
-        "//main/external/msvcp90:msvcp90",
     ],
-    # The CRT activation context comes from the manifest embedded in
-    # test_javauno_any.dll (transport_manifest_res); the msvcp90 group above
-    # supplies the co-located Microsoft.VC90.CRT SxS assembly it resolves to.
 )
 
 # 5b. The test: a JVM runs TestJni, which loads the bridge and runs the 
round-trip.
@@ -587,24 +566,7 @@ staged_java_test(
     ],
 )
 
-# 3a. Compile the VC90-CRT manifest into a .res (RC.Exe), to embed in the DLL 
so
-#     it has a CRT activation context when loaded into a foreign JVM (avoids 
R6034).
-#     Mirrors the crashrep soreport_res RC.exe pattern.
-genrule(
-    name = "transport_manifest_res",
-    srcs = [
-        "test/java_uno/any/transport.rc",
-        "//main/external/msvcp90:vc90_app_manifest",
-    ],
-    outs = ["transport_manifest.res"],
-    cmd_bat = (
-        "set \"_RC=" + RC_EXE + "\"&&" +
-        "\"!_RC!\" /nologo /I \"main/external/msvcp90\"" +
-        " /fo \"$(OUTS)\" \"$(location test/java_uno/any/transport.rc)\""
-    ),
-)
-
-# 3b. transport.dll — native side; exports the JNI create_jni_transport entry.
+# 3. transport.dll — native side; exports the JNI create_jni_transport entry.
 #    Mirrors the java_uno cc_binary (jni.h via @rules_java//toolchains:jni,
 #    SOLAR_JAVA so jvmaccess pulls the real jni.h, undecorated JNI export via 
.def).
 cc_binary(
@@ -629,7 +591,6 @@ cc_binary(
         "@rules_java//toolchains:jni",
     ],
     additional_linker_inputs = [
-        ":transport_manifest_res",
         "//main/sal:sal_implib",
         "//main/salhelper:salhelper_implib",
         "//main/cppu:cppu3_implib",
@@ -639,7 +600,6 @@ cc_binary(
     linkshared = True,
     win_def_file = "test/java_uno/any/transport.def",
     linkopts = [
-        "$(execpath :transport_manifest_res)",  # embeds the VC90-CRT manifest 
(id 2)
         "$(execpath //main/sal:sal_implib)",
         "$(execpath //main/salhelper:salhelper_implib)",
         "$(execpath //main/cppu:cppu3_implib)",
diff --git a/main/bridges/test/java_uno/any/transport.rc 
b/main/bridges/test/java_uno/any/transport.rc
deleted file mode 100644
index 4fcc068aae..0000000000
--- a/main/bridges/test/java_uno/any/transport.rc
+++ /dev/null
@@ -1,8 +0,0 @@
-// Embed a VC90-CRT dependency manifest as RT_MANIFEST (type 24), resource id 2
-// (ISOLATIONAWARE_MANIFEST_RESOURCE_ID — the DLL manifest slot). This gives
-// test_javauno_any.dll a CRT activation context when it is loaded into a 
foreign
-// process (the JVM), so the VC90 CRT resolves via the co-located SxS assembly
-// (Microsoft.VC90.CRT) instead of loose off PATH — which otherwise triggers 
R6034.
-// Windows honours external <name>.manifest files only for EXEs, so a DLL must
-// embed its manifest.
-2 24 "vc90_app.manifest"
diff --git a/main/bridges/test/jni_test_launcher.cxx 
b/main/bridges/test/jni_test_launcher.cxx
index b681762ec7..cc1f621660 100644
--- a/main/bridges/test/jni_test_launcher.cxx
+++ b/main/bridges/test/jni_test_launcher.cxx
@@ -23,11 +23,11 @@
 //
 // Why this exists: the UNO JNI bridge loads its native libraries 
(java_uno.dll,
 // sal3.dll, ...) at runtime via osl::Module — outside any load-time activation
-// context. Those libraries are 32-bit /MD builds that need a VC90-CRT 
activation
-// context for every load. A stock java.exe provides none, so loading them 
raises
-// R6034. This launcher carries the VC90-CRT manifest EMBEDDED (resource id 1),
-// which sets a *process-default* activation context covering every later DLL 
the
-// JVM loads — exactly how soffice.bin hosts the office JVM.
+// context. Built with VS2008 they needed a VC90-CRT activation context for 
every
+// load, which a stock java.exe does not provide (R6034), so this launcher 
carried
+// the VC90-CRT manifest embedded and hosted the JVM in-process.  The VS2019
+// runtime needs no activation context, so the manifest is gone; the launcher
+// stays as the JVM host the test rule drives.
 //
 // Usage: jni_test_launcher <classpath> <java.library.path> <main.class.Name> 
[args...]
 // jvm.dll is located via PATH (the test launcher sets PATH to the JDK dirs).
diff --git a/main/bridges/test/jni_test_launcher.rc 
b/main/bridges/test/jni_test_launcher.rc
deleted file mode 100644
index 50261f514f..0000000000
--- a/main/bridges/test/jni_test_launcher.rc
+++ /dev/null
@@ -1,6 +0,0 @@
-// Embed the VC90-CRT dependency manifest as RT_MANIFEST (type 24), resource 
id 1
-// (CREATEPROCESS_MANIFEST_RESOURCE_ID — the EXE manifest slot). This gives the
-// launcher process a default activation context for the VC90 CRT, which covers
-// every DLL the hosted JVM loads at runtime (the UNO bridge libs), so they
-// resolve the CRT via the SxS assembly instead of loose (avoids R6034).
-1 24 "vc90_app.manifest"
diff --git a/main/comphelper/BUILD.bazel b/main/comphelper/BUILD.bazel
index 8aafeca41d..eb222d816d 100644
--- a/main/comphelper/BUILD.bazel
+++ b/main/comphelper/BUILD.bazel
@@ -205,8 +205,8 @@ _QA_COPTS = [
 # msci_uno/mscx_uno is a RUN-TIME dep nothing links: cppu::getCaughtException()
 # (reached from OWeakObject dispose paths, e.g. test_weakbag) builds a C++↔UNO
 # Mapping, and cppu's uno_getMapping osl_loadModule()s the bridge on demand.
-# Without it staged the loader grabs a stray copy off PATH whose CRT loads
-# outside this exe's activation context → R6034 → exit 0xC0000142.
+# Without it staged the loader grabs a stray copy off PATH, from some other
+# build (with the old VC90 runtime that was R6034 → exit 0xC0000142).
 _QA_RUNTIME_DLLS = [
     "//main/sal:sal3",
     "//main/cppu:cppu3",
diff --git a/main/connectivity/BUILD.bazel b/main/connectivity/BUILD.bazel
index 9aabda2335..0a00ae4d85 100644
--- a/main/connectivity/BUILD.bazel
+++ b/main/connectivity/BUILD.bazel
@@ -585,12 +585,6 @@ cc_binary(
 # __stdcall on Win32, so without the DEF they would be exported as _Java_..@N
 # and the JVM could not find them) -- same trick as //main/jurt jpipe.def.
 #
-# No RT_MANIFEST id 2 here, deliberately, and this is the one place the
-# jpipe rule does NOT generalise: jpipe/jpipx are loaded by a stock java.exe
-# that has no VC90 activation context of its own, whereas the JVM that calls
-# these natives runs IN-PROCESS inside soffice.exe (started by javavm/jvmfwk),
-# whose own manifest already covers the whole process.
-#
 # NOT named with a DLLPOSTFIX, unlike every other driver here: version.mk sets
 # HSQLDB_TARGET=hsqldb bare, because the Java side hardcodes the base name in
 # System.loadLibrary("hsqldb") (sdbc_hsqldb NativeLibraries.java).
diff --git a/main/cppuhelper/BUILD.bazel b/main/cppuhelper/BUILD.bazel
index 967c4439f9..ec77f96884 100644
--- a/main/cppuhelper/BUILD.bazel
+++ b/main/cppuhelper/BUILD.bazel
@@ -172,8 +172,8 @@ _QA_LINKOPTS = [
 # cppu::getCaughtException()/throwException() build a Mapping between the C++
 # and UNO environments, and cppu's uno_getMapping osl_loadModule()s the bridge
 # (msci_uno.dll / mscx_uno.dll) on demand.  Omit it and the loader either finds
-# a stray copy elsewhere on PATH — whose CRT then loads outside the exe's
-# activation context → R6034 → DllMain fails → exit 0xC0000142 — or finds
+# a stray copy elsewhere on PATH, from some other build (with the old VC90
+# runtime that was R6034 → DllMain fails → exit 0xC0000142) — or finds
 # nothing, leaving a null mapping that AVs inside dispose().  Same select() as
 # //main/bridges:cppuno_roundtrip_test; the compiled CPPU_ENV picks the match.
 _QA_RUNTIME_DLLS = [
diff --git a/main/cpputools/BUILD.bazel b/main/cpputools/BUILD.bazel
index e1133c4205..9aea1e8d45 100644
--- a/main/cpputools/BUILD.bazel
+++ b/main/cpputools/BUILD.bazel
@@ -69,19 +69,14 @@ cc_binary(
     srcs = ["source/unoexe/unoexe.cxx"],
     defines = _DEFINES,
     deps = _COMMON_DEPS + ["//main/salhelper:salhelper_headers"],
-    # The VC90-CRT manifest at RT_MANIFEST id 1: uno.exe is INSTALLED
-    # (program/, scp2 gid_File_Exe_Uno), and the extension manager starts it
-    # as $URE_BIN_DIR/uno to register every component that still uses active
-    # registration (dp_component.cxx raise_uno_process).  Without an
-    # activation context the /MD CRT is unresolvable there.  The test fixtures
-    # that stage their own external uno.exe.manifest are unaffected: both
-    # declare the same assembly.
+    # uno.exe is INSTALLED (program/, scp2 gid_File_Exe_Uno), and the
+    # extension manager starts it as $URE_BIN_DIR/uno to register every
+    # component that still uses active registration (dp_component.cxx
+    # raise_uno_process).
     additional_linker_inputs = _COMMON_LINKER_INPUTS + [
-        "//main/external/msvcp90:vc90_app_manifest_res",
         "//main/salhelper:salhelper_implib",
     ],
     linkopts = _COMMON_LINKOPTS[:-1] + [  # drop /MANIFEST:NO, add salhelper 
before it
-        "$(execpath //main/external/msvcp90:vc90_app_manifest_res)",
         "$(execpath //main/salhelper:salhelper_implib)",
         "/MANIFEST:NO",
     ],
diff --git a/main/desktop/BUILD.bazel b/main/desktop/BUILD.bazel
index e3c6041375..3927523d7a 100644
--- a/main/desktop/BUILD.bazel
+++ b/main/desktop/BUILD.bazel
@@ -1182,12 +1182,11 @@ rsc_res(
 )
 
 exports_files(glob(["**/*.component"]))
-exports_files(["util/soffice.exe.manifest", "util/soffice.bin.manifest"])
-# amd64 (x64) release app manifest — same as util/soffice.exe.manifest but with
-# processorArchitecture="amd64" in the assemblyIdentity + Microsoft.VC90.CRT /
-# Common-Controls deps.  On x64 the loader rejects an x86 CRT manifest against
-# the amd64 msvcr90.dll (see project_win64_source_fixes #4), so staging selects
-# this variant.  Same basename so it still stages as soffice.exe/bin.manifest.
+# soffice.exe application manifest (amd64): Common-Controls 6, i.e. visual
+# styles — without it OpenThemeData() returns NULL and VCL falls back to bitmap
+# radio/checkbox indicators.  It no longer declares Microsoft.VC90.CRT: the
+# VS2019 runtime loads by ordinary DLL search.  The x86 variants left with the
+# 32-bit build.
 exports_files(["util/amd64/soffice.exe.manifest"])
 
 
diff --git a/main/desktop/util/amd64/soffice.exe.manifest 
b/main/desktop/util/amd64/soffice.exe.manifest
index f0498fb410..a8a8e15b8d 100644
--- a/main/desktop/util/amd64/soffice.exe.manifest
+++ b/main/desktop/util/amd64/soffice.exe.manifest
@@ -7,9 +7,4 @@
       <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" 
version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" 
processorArchitecture="amd64"/>
     </dependentAssembly>
   </dependency>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="amd64" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
 </assembly>
diff --git a/main/desktop/util/soffice.bin.manifest 
b/main/desktop/util/soffice.bin.manifest
deleted file mode 100644
index dbbf1c2783..0000000000
--- a/main/desktop/util/soffice.bin.manifest
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" 
name="OpenOffice" type="win32" />
-  <description>http://www.openoffice.org</description>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" 
version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" 
processorArchitecture="x86"/>
-    </dependentAssembly>
-  </dependency>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="x86" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/desktop/util/soffice.exe.manifest 
b/main/desktop/util/soffice.exe.manifest
deleted file mode 100644
index dbbf1c2783..0000000000
--- a/main/desktop/util/soffice.exe.manifest
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" 
name="OpenOffice" type="win32" />
-  <description>http://www.openoffice.org</description>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" 
version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" 
processorArchitecture="x86"/>
-    </dependentAssembly>
-  </dependency>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="x86" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/external/BUILD.bazel b/main/external/BUILD.bazel
index 78787e1b08..ce13b09b0c 100644
--- a/main/external/BUILD.bazel
+++ b/main/external/BUILD.bazel
@@ -5,7 +5,6 @@ filegroup(
         "//main/external/mingwheaders:mingwheaders",
         "//main/external/gdiplus:gdiplus_dll",
         "//main/external/unowinreg:unowinreg",
-        "//main/external/msvcp90:msvcp90",
         "//main/external/msvcp100:msvcp100",
         "//main/external/vcredist:vcredist",
         "//main/external/mingwm10:mingwm10",
diff --git a/main/external/msvcp90/BUILD.bazel 
b/main/external/msvcp90/BUILD.bazel
deleted file mode 100644
index bf21a2c4e7..0000000000
--- a/main/external/msvcp90/BUILD.bazel
+++ /dev/null
@@ -1,114 +0,0 @@
-load("@vs_config//:paths.bzl", "RC_EXE")
-
-filegroup(
-    name = "msvcp90",
-    srcs = [":crt_dlls"],
-    visibility = ["//visibility:public"],
-)
-
-# CRT DLLs + assembly manifest, arch-selected.  The select() resolves in the
-# CONSUMER's configuration, which is exactly what both use-sites need:
-#   * IDL/UNO build TOOLS (idl_pipeline.bzl, cfg="exec") pull this in the exec
-#     configuration = the x64 host, so they get the amd64 CRT — required now 
that
-#     the x86 toolchain correctly targets x86_32 and exec-config tools build 
x64.
-#   * Product STAGING pulls it in the target configuration → x86 CRT for the 
x86
-#     build, amd64 CRT for the --config=x64 build.
-# amd64/ holds the VC\redist\amd64\Microsoft.VC90.CRT copies (+ amd64 app 
manifest).
-filegroup(
-    name = "crt_dlls",
-    srcs = select({
-        "//build:arch_x64": [
-            "amd64/msvcr90.dll",
-            "amd64/msvcp90.dll",
-            "amd64/msvcm90.dll",
-            "amd64/Microsoft.VC90.CRT.manifest",
-        ],
-        "//conditions:default": [
-            "msvcr90.dll",
-            "msvcp90.dll",
-            "msvcm90.dll",
-            "Microsoft.VC90.CRT.manifest",
-        ],
-    }),
-    visibility = ["//visibility:public"],
-)
-
-# Generic application manifest declaring the VC90 CRT dependency.
-# Stage this alongside each /MD tool EXE as <exename>.manifest so that
-# Windows picks it up as an external manifest (no mt.exe embedding needed).
-# amd64 variant declares processorArchitecture="amd64" for x64 tools/binaries.
-filegroup(
-    name = "vc90_app_manifest",
-    srcs = select({
-        "//build:arch_x64": ["amd64/vc90_app.manifest"],
-        "//conditions:default": ["vc90_app.manifest"],
-    }),
-    visibility = ["//visibility:public"],
-)
-
-# ── Embedded (in-image) form of the app manifest ─────────────────────────────
-# vc90_app_manifest above is the EXTERNAL form, staged as <exe>.manifest.  That
-# is enough for DLLs bound at process start, but NOT for an exe that
-# osl_loadModule()s a UNO DLL later: the C++/UNO bridge (msci_uno/mscx_uno) is
-# pulled in on demand by any cppu Mapping, and if the CRT activation context is
-# not in force in the image itself, that late load resolves msvcr90 loose
-# instead of via the SxS assembly → R6034 → DllMain fails → exit 0xC0000142.
-#
-# Linking this .res into the exe embeds the manifest at RT_MANIFEST id 1, which
-# the loader always honours (and which supersedes the external file).  Used by
-# //build/rules:gtest_test.bzl for every staged test exe; //main/bridges'
-# jni_test_launcher does the same thing by hand for the JVM host.
-#
-# The .rc is arch-selected rather than parameterised because RC.Exe takes the
-# manifest path as a literal in the resource statement — the x64 one points at
-# amd64/, and both compile with /I main/external/msvcp90.
-filegroup(
-    name = "vc90_app_manifest_rc",
-    srcs = select({
-        "//build:arch_x64": ["vc90_app_manifest_amd64.rc"],
-        "//conditions:default": ["vc90_app_manifest.rc"],
-    }),
-)
-
-genrule(
-    name = "vc90_app_manifest_res",
-    srcs = [
-        ":vc90_app_manifest_rc",
-        ":vc90_app_manifest",
-    ],
-    outs = ["vc90_app_manifest.res"],
-    cmd_bat = (
-        "set \"_RC=" + RC_EXE + "\"&&" +
-        "\"!_RC!\" /nologo /I \"main/external/msvcp90\"" +
-        " /fo \"$(OUTS)\" \"$(location :vc90_app_manifest_rc)\""
-    ),
-    visibility = ["//visibility:public"],
-)
-
-# ── Embedded manifest for a DLL loaded by a FOREIGN process ──────────────────
-# Same idea as vc90_app_manifest_res, but at RT_MANIFEST id 2 (the DLL slot).
-# Needed by a /MD DLL that gets loaded into a process this build does not
-# produce — jurt's jpipe.dll, which a stock java.exe loads via
-# System.loadLibrary().  See vc90_dll_manifest.rc for the full reasoning.
-filegroup(
-    name = "vc90_dll_manifest_rc",
-    srcs = select({
-        "//build:arch_x64": ["vc90_dll_manifest_amd64.rc"],
-        "//conditions:default": ["vc90_dll_manifest.rc"],
-    }),
-)
-
-genrule(
-    name = "vc90_dll_manifest_res",
-    srcs = [
-        ":vc90_dll_manifest_rc",
-        ":vc90_app_manifest",
-    ],
-    outs = ["vc90_dll_manifest.res"],
-    cmd_bat = (
-        "set \"_RC=" + RC_EXE + "\"&&" +
-        "\"!_RC!\" /nologo /I \"main/external/msvcp90\"" +
-        " /fo \"$(OUTS)\" \"$(location :vc90_dll_manifest_rc)\""
-    ),
-    visibility = ["//visibility:public"],
-)
diff --git a/main/external/msvcp90/README_msvcX90.dll 
b/main/external/msvcp90/README_msvcX90.dll
index 8214661735..b49cedbe46 100644
--- a/main/external/msvcp90/README_msvcX90.dll
+++ b/main/external/msvcp90/README_msvcX90.dll
@@ -1,11 +1,2 @@
 Put msvcm90.dll, msvcp90.dll, msvcr90.dll and Microsoft.VC90.CRT.manifest
 in this directory for Windows builds using a VS 2008 / VC 9.0 compiler.
-
-For x64 (--config=x64) builds, also create an amd64/ subdirectory and put the
-amd64 copies of msvcm90.dll, msvcp90.dll, msvcr90.dll and
-Microsoft.VC90.CRT.manifest there (from VC\redist\amd64\Microsoft.VC90.CRT),
-plus an amd64 application manifest amd64/vc90_app.manifest (a copy of
-vc90_app.manifest with processorArchitecture="amd64").  The build tools
-(idlc, regmerge, ...) run on the x64 host and are built x64, so they need the
-amd64 CRT; the crt_dlls / vc90_app_manifest filegroups select() the amd64
-variants for the x64 configuration.
diff --git a/main/external/msvcp90/amd64/vc90_app.manifest 
b/main/external/msvcp90/amd64/vc90_app.manifest
deleted file mode 100644
index 4c413e8266..0000000000
--- a/main/external/msvcp90/amd64/vc90_app.manifest
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
-    <security>
-      <requestedPrivileges>
-        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
-      </requestedPrivileges>
-    </security>
-  </trustInfo>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
-        version="9.0.30729.1" processorArchitecture="amd64"
-        publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/external/msvcp90/vc90_app.manifest 
b/main/external/msvcp90/vc90_app.manifest
deleted file mode 100644
index 88e410189a..0000000000
--- a/main/external/msvcp90/vc90_app.manifest
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
-    <security>
-      <requestedPrivileges>
-        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
-      </requestedPrivileges>
-    </security>
-  </trustInfo>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
-        version="9.0.30729.1" processorArchitecture="x86"
-        publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/external/msvcp90/vc90_app_manifest.rc 
b/main/external/msvcp90/vc90_app_manifest.rc
deleted file mode 100644
index 4baec6c666..0000000000
--- a/main/external/msvcp90/vc90_app_manifest.rc
+++ /dev/null
@@ -1,13 +0,0 @@
-// Embed the VC90-CRT dependency manifest as RT_MANIFEST (type 24), resource 
id 1
-// (CREATEPROCESS_MANIFEST_RESOURCE_ID — the EXE manifest slot).
-//
-// An external "<exe>.manifest" file only reliably supplies the activation
-// context for DLLs bound at process start.  Test exes that osl_loadModule() a
-// UNO DLL later (the C++/UNO bridge, pulled in by any cppu Mapping) need the
-// context to still be in force at that point — embedding it in the image is 
the
-// only way to guarantee that.  Without it the late-loaded DLL resolves the CRT
-// loose instead of via the SxS assembly → R6034 → DllMain fails → 0xC0000142.
-//
-// x86 variant: the manifest sits at the package root.  See
-// vc90_app_manifest_amd64.rc for the x64 one.
-1 24 "vc90_app.manifest"
diff --git a/main/external/msvcp90/vc90_app_manifest_amd64.rc 
b/main/external/msvcp90/vc90_app_manifest_amd64.rc
deleted file mode 100644
index 29fa663396..0000000000
--- a/main/external/msvcp90/vc90_app_manifest_amd64.rc
+++ /dev/null
@@ -1,6 +0,0 @@
-// x64 counterpart of vc90_app_manifest.rc (see there for why this exists).
-// Same RT_MANIFEST id 1 slot, but pointing at the amd64 app manifest, which
-// declares processorArchitecture="amd64" for the VC90 CRT assembly.
-// Both .rc files are compiled with /I main/external/msvcp90, so the path here
-// is relative to the package root.
-1 24 "amd64/vc90_app.manifest"
diff --git a/main/external/msvcp90/vc90_dll_manifest.rc 
b/main/external/msvcp90/vc90_dll_manifest.rc
deleted file mode 100644
index c7e323db9f..0000000000
--- a/main/external/msvcp90/vc90_dll_manifest.rc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Embed the VC90-CRT dependency manifest as RT_MANIFEST (type 24), resource 
id 2
-// (ISOLATIONAWARE_MANIFEST_RESOURCE_ID — the DLL manifest slot).
-//
-// The exe form (id 1, vc90_app_manifest.rc) covers a process we launch
-// ourselves.  This one is for a DLL loaded into a process we do NOT control:
-// jurt's jpipe.dll is loaded by System.loadLibrary() from a stock java.exe,
-// whose image carries no VC90 dependency at all, so nothing in that process
-// supplies an activation context.  Without a manifest of its own the loader
-// resolves MSVCR90.dll by plain search and reports "Can't find dependent
-// libraries" (or, if a loose copy is on PATH, R6034 — an unmanifested CRT 
load).
-// With it, the loader builds an activation context from the DLL's own manifest
-// while binding its imports and finds the SxS assembly.
-//
-// This is what upstream's link step does for every DLL (solenv embeds the
-// generated manifest with mt.exe); this tree links /MANIFEST:NO throughout,
-// which is invisible inside soffice.exe — its own manifest covers the whole
-// process — and only surfaces for a DLL a FOREIGN host loads.
-//
-// Same manifest XML as the exe form, deliberately: the assembly identity and
-// version are the part that must not drift, and the trustInfo element it also
-// carries is simply ignored in a DLL manifest.
-//
-// x86 variant: the manifest sits at the package root.  See
-// vc90_dll_manifest_amd64.rc for the x64 one.
-2 24 "vc90_app.manifest"
diff --git a/main/external/msvcp90/vc90_dll_manifest_amd64.rc 
b/main/external/msvcp90/vc90_dll_manifest_amd64.rc
deleted file mode 100644
index 0130e9febb..0000000000
--- a/main/external/msvcp90/vc90_dll_manifest_amd64.rc
+++ /dev/null
@@ -1,6 +0,0 @@
-// x64 variant of vc90_dll_manifest.rc — see there for why a DLL needs its own
-// embedded manifest (resource id 2, ISOLATIONAWARE_MANIFEST_RESOURCE_ID).
-//
-// Both .rc files are compiled with /I main/external/msvcp90, so the path here
-// is relative to the package root.
-2 24 "amd64/vc90_app.manifest"
diff --git a/main/idl/BUILD.bazel b/main/idl/BUILD.bazel
index 1ab3a3515d..4ac6a7439b 100644
--- a/main/idl/BUILD.bazel
+++ b/main/idl/BUILD.bazel
@@ -56,8 +56,6 @@ cc_binary(
         "/MANIFEST:NO",
     ],
     # Runtime DLLs for svidl_bundle — staged once in main/idl/svidl_bundle/.
-    # svidl is /MD; sal3.dll and the others are also /MD — all share the same
-    # msvcr90.dll instance from crt_dlls, so no CRT conflict occurs.
     data = [
         "//main/sal:sal3",
         "//main/tools:tl",
@@ -69,16 +67,7 @@ cc_binary(
         "//main/vos:vos3MSC",
         "//main/basegfx:basegfx",
         "//main/i18npool:i18nisolang1MSC",
-        "//main/external/msvcp90:crt_dlls",
-        # App manifest declares the CRT-assembly processorArchitecture; must 
match
-        # the (arch-selected) CRT.  x64 svidl is exec-built for the x64 host, 
so it
-        # needs the amd64 manifest — an x86 manifest makes the loader reject 
the
-        # amd64 msvcr90.dll (0xC000007B STATUS_INVALID_IMAGE_FORMAT).  Staged 
by
-        # basename, so both are named svidl.exe.manifest.
-    ] + select({
-        "//build:arch_x64": ["util/amd64/svidl.exe.manifest"],
-        "//conditions:default": ["util/svidl.exe.manifest"],
-    }),
+    ],
     visibility = ["//visibility:public"],
 )
 
diff --git a/main/idl/util/amd64/svidl.exe.manifest 
b/main/idl/util/amd64/svidl.exe.manifest
deleted file mode 100644
index 84685f3ebb..0000000000
--- a/main/idl/util/amd64/svidl.exe.manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="amd64" 
name="svidl" type="win32"/>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="amd64" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/idl/util/svidl.exe.manifest b/main/idl/util/svidl.exe.manifest
deleted file mode 100644
index 6e22345fb3..0000000000
--- a/main/idl/util/svidl.exe.manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" name="svidl" 
type="win32"/>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="x86" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/jurt/BUILD.bazel b/main/jurt/BUILD.bazel
index 814ab5e408..f2d868595d 100644
--- a/main/jurt/BUILD.bazel
+++ b/main/jurt/BUILD.bazel
@@ -57,17 +57,10 @@ uno_jar(
     visibility = ["//visibility:public"],
 )
 
-# ── the VC90-CRT manifest, EMBEDDED (both pipe DLLs) ─────────────────────────
-# These two are the only DLLs in the tree loaded into a process this build does
-# not produce: a stock java.exe, via System.loadLibrary("jpipe").  That process
-# has no VC90 dependency of its own, so nothing supplies an activation context
-# and the loader cannot resolve their MSVCR90.dll import — System.loadLibrary
-# reports "Can't find dependent libraries", and putting a loose msvcr90.dll on
-# PATH would only trade that for R6034.  Embedding the manifest at RT_MANIFEST
-# id 2 makes each DLL carry its own context.  Everything else here is loaded
-# into soffice.exe (or a staged test exe), whose own manifest already covers 
the
-# whole process.  See //main/external/msvcp90:vc90_dll_manifest_res.
-_DLL_MANIFEST_RES = "//main/external/msvcp90:vc90_dll_manifest_res"
+# The two pipe DLLs are loaded into a process this build does not produce: a
+# stock java.exe, via System.loadLibrary("jpipe").  Built with VS2008 they each
+# embedded the VC90-CRT manifest (RT_MANIFEST id 2), since that process gave
+# them no activation context; the VS2019 runtime needs none.
 
 # ── jpipx.dll 
─────────────────────────────────────────────────────────────────
 # Real JNI pipe implementation.  On Windows, functions are exported with
@@ -87,11 +80,9 @@ cc_binary(
     ],
     additional_linker_inputs = [
         "//main/sal:sal_implib",
-        _DLL_MANIFEST_RES,
     ],
     linkopts = [
         "$(execpath //main/sal:sal_implib)",
-        "$(execpath %s)" % _DLL_MANIFEST_RES,
         "/MANIFEST:NO",
     ],
     visibility = ["//visibility:public"],
@@ -114,10 +105,6 @@ cc_binary(
         "//main/sal:sal_headers",
         "@rules_java//toolchains:jni",
     ],
-    additional_linker_inputs = [_DLL_MANIFEST_RES],
-    linkopts = [
-        "$(execpath %s)" % _DLL_MANIFEST_RES,
-        "/MANIFEST:NO",
-    ],
+    linkopts = ["/MANIFEST:NO"],
     visibility = ["//visibility:public"],
 )
diff --git a/main/registry/BUILD.bazel b/main/registry/BUILD.bazel
index 85ce7e2656..306118ee92 100644
--- a/main/registry/BUILD.bazel
+++ b/main/registry/BUILD.bazel
@@ -120,21 +120,14 @@ cc_binary(
         "//main/sal:sal_headers",
         "//main/stlport:stlport",
     ],
-    # regview is run by a developer (via //build/tools:uno_graph.py), not by a
-    # build action that could stage an external <exe>.manifest beside it, so it
-    # has to carry its own VC90-CRT activation context: the manifest is 
compiled
-    # to a .res and linked in at RT_MANIFEST id 1.  Without it the /MD CRT is
-    # unresolvable and the process dies 0xC0000135 before main.  Same reasoning
-    # as //main/unodevtools:uno-skeletonmaker.
+    # regview is run by a developer (via //build/tools:uno_graph.py).
     additional_linker_inputs = [
         "//main/sal:sal_implib",
         "//main/registry:reg_implib",
-        "//main/external/msvcp90:vc90_app_manifest_res",
     ],
     linkopts = [
         "$(execpath //main/sal:sal_implib)",
         "$(execpath //main/registry:reg_implib)",
-        "$(execpath //main/external/msvcp90:vc90_app_manifest_res)",
         "/MANIFEST:NO",
     ],
     visibility = ["//visibility:public"],
@@ -144,8 +137,7 @@ cc_binary(
 # Compares two type-library registries; shipped in the SDK's bin/ so a
 # developer can diff an .rdb they generate against a reference.  Mirrors
 # Executable_regcompare.mk (reg + sal + salhelper + stl).  An SDK tool a user
-# runs from where it was installed, so it carries its own VC90-CRT activation
-# context (RT_MANIFEST id 1) exactly like regview and uno-skeletonmaker.
+# runs from where it was installed.
 cc_binary(
     name = "regcompare",
     srcs = [
@@ -167,13 +159,11 @@ cc_binary(
         "//main/sal:sal_implib",
         "//main/salhelper:salhelper_implib",
         "//main/registry:reg_implib",
-        "//main/external/msvcp90:vc90_app_manifest_res",
     ],
     linkopts = [
         "$(execpath //main/sal:sal_implib)",
         "$(execpath //main/salhelper:salhelper_implib)",
         "$(execpath //main/registry:reg_implib)",
-        "$(execpath //main/external/msvcp90:vc90_app_manifest_res)",
         "/MANIFEST:NO",
     ],
     visibility = ["//visibility:public"],
diff --git a/main/sal/sal_qa.bzl b/main/sal/sal_qa.bzl
index 3bee60b9e8..f19d94dc6e 100644
--- a/main/sal/sal_qa.bzl
+++ b/main/sal/sal_qa.bzl
@@ -62,8 +62,7 @@ def sal_qa_helper_exe(name, srcs, subdir, copts = [], deps = 
[], linkopts = []):
         defines = _DEFINES,
         deps = _COMMON_DEPS + deps,
         additional_linker_inputs = ["//main/sal:sal_implib"],
-        # /MANIFEST:NO — the staging rule supplies an external <exe>.manifest
-        # for the VC90 CRT, exactly as it does for the test exe itself.
+        # /MANIFEST:NO, as for every other binary: none is needed.
         linkopts = ["$(execpath //main/sal:sal_implib)", "/MANIFEST:NO"] + 
linkopts,
         testonly = True,
     )
diff --git a/main/shell/BUILD.bazel b/main/shell/BUILD.bazel
index 743dc86aa4..a2abe9432a 100644
--- a/main/shell/BUILD.bazel
+++ b/main/shell/BUILD.bazel
@@ -405,13 +405,7 @@ cc_binary(
         "//main/vos:vos3MSC",
         "//main/basegfx:basegfx",
         "//main/i18npool:i18nisolang1MSC",
-        "//main/external/msvcp90:crt_dlls",
-        # amd64 app manifest for the x64 (exec) tool — matches the 
arch-selected CRT
-        # (an x86 manifest → loader rejects amd64 msvcr90.dll, 0xC000007B).
-    ] + select({
-        "//build:arch_x64": ["util/amd64/lngconvex.exe.manifest"],
-        "//conditions:default": ["util/lngconvex.exe.manifest"],
-    }),
+    ],
     visibility = ["//visibility:public"],
 )
 
diff --git a/main/shell/util/amd64/lngconvex.exe.manifest 
b/main/shell/util/amd64/lngconvex.exe.manifest
deleted file mode 100644
index fdc3c82696..0000000000
--- a/main/shell/util/amd64/lngconvex.exe.manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="amd64" 
name="lngconvex" type="win32"/>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="amd64" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/shell/util/lngconvex.exe.manifest 
b/main/shell/util/lngconvex.exe.manifest
deleted file mode 100644
index e9f36d4d3a..0000000000
--- a/main/shell/util/lngconvex.exe.manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" 
name="lngconvex" type="win32"/>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.30729.1" processorArchitecture="x86" 
publicKeyToken="1fc8b3b9a1e18e3b"/>
-    </dependentAssembly>
-  </dependency>
-</assembly>
diff --git a/main/staging/BUILD.bazel b/main/staging/BUILD.bazel
index 842868b1e6..b3080ab744 100644
--- a/main/staging/BUILD.bazel
+++ b/main/staging/BUILD.bazel
@@ -96,18 +96,12 @@ filegroup(
     ],
 )
 
-# Release application manifest for soffice.exe — declares the 
Microsoft.VC90.CRT
-# dependency so Windows consults SxS/publisher-policy and loads MSVCR90.dll 
from
-# WinSxS with an activation context (no R6034).  Wrapped in a filegroup because
-# collect_outputs.deps does not accept raw source files.
+# Application manifest for soffice.exe: Common-Controls 6 (visual styles).
+# Wrapped in a filegroup because collect_outputs.deps does not accept raw
+# source files.
 filegroup(
     name = "soffice_app_manifest",
-    srcs = select({
-        # x64 needs an amd64 CRT/assembly manifest — the loader rejects an x86
-        # processorArchitecture manifest against the amd64 msvcr90.dll 
(0xC000007B).
-        "//build:arch_x64": ["//main/desktop:util/amd64/soffice.exe.manifest"],
-        "//conditions:default": ["//main/desktop:util/soffice.exe.manifest"],
-    }),
+    srcs = ["//main/desktop:util/amd64/soffice.exe.manifest"],
 )
 
 # ── Flat program/ files (DLLs, EXEs, RDBs, ZIPs, .py scripts, .ini) ─────────
@@ -469,26 +463,18 @@ collect_outputs(
         ],
         "//conditions:default": [],
     }) + [
-        # Do NOT bundle app-local CRT DLLs.  Instead stage the
-        # application manifest so soffice.exe declares a Microsoft.VC90.CRT
-        # 9.0.30729.1 dependency.  That manifest is what makes Windows consult
-        # SxS: the installed VC90 publisher policy
-        # (x86_policy.9.0.microsoft.vc90.crt_..._9.0.30729.9635) redirects
-        # 9.0.30729.1 → 9.0.30729.9635, which is present in WinSxS, so 
MSVCR90.dll
-        # loads WITH an activation context (no R6034).
-        # Without the manifest the loader never consults SxS/policy and 
searches
-        # MSVCR90.dll only on the plain DLL path (program\, System32, PATH) — 
it is
-        # in none of those, so the process dies before any window ("no 
window").
-        # The :soffice cc_binary links /MANIFEST:NO, so this external 
.manifest is
-        # the only manifest soffice.exe gets.  (A redistributable build for
-        # machines lacking the VC9 redist would additionally ship the CRT as a
-        # program\Microsoft.VC90.CRT\ subfolder private assembly + hash-free
-        # manifest; on a dev box with the redist installed WinSxS covers it.)
-        # The same manifest serves --compilation_mode=dbg: the VS2008 debug CRT
-        # (MSVCR90D, Microsoft.VC90.DebugCRT) once staged for /MDd left with 
the
-        # VC9 toolchains; a /MDd build now imports the VS2019 debug runtime
-        # (ucrtbased, vcruntime140d), which needs no manifest.  Keeping the
-        # release manifest also keeps Common-Controls 6 (visual styles) on.
+        # soffice.exe's application manifest.  The :soffice cc_binary links
+        # /MANIFEST:NO, so this external .manifest is the only one it gets; it
+        # carries Common-Controls 6 (visual styles) and nothing else.
+        # No C runtime is staged: the VS2019 runtime (vcruntime140, msvcp140,
+        # the UCRT) loads by ordinary DLL search from System32, i.e. it comes
+        # from the VC++ redistributable.  Until 2026-11-05 this manifest also
+        # declared Microsoft.VC90.CRT, which no binary imported any more; on a
+        # machine without the VS2008 redist that dependency alone would keep
+        # soffice.exe from starting (side-by-side configuration error; not
+        # reproduced, the dev machines all have the redist).
+        # The same manifest serves --compilation_mode=dbg, whose /MDd binaries
+        # import the VS2019 debug runtime (ucrtbased, vcruntime140d).
         ":soffice_app_manifest",
     ] + select({
         # C++/UNO bridge, loaded by name from CPPU_ENV: msci_uno.dll on x86,
diff --git a/main/staging/stage_install.bzl b/main/staging/stage_install.bzl
index 533f702ced..39cebcf1e6 100644
--- a/main/staging/stage_install.bzl
+++ b/main/staging/stage_install.bzl
@@ -52,27 +52,6 @@ def _stage_install_impl(ctx):
             lines.append("program\t{}\tsoffice.bin".format(f.path))
             break
 
-    # ── program/ — auto-stage vc90_app_manifest as <exe>.manifest ────────────
-    # Any EXE without an explicit .manifest already in the program list gets
-    # the generic VC90 CRT application manifest so Windows activates the SxS
-    # context and MSVCR90.dll loads without r6034.
-    if ctx.files.vc90_app_manifest:
-        app_manifest_src = ctx.files.vc90_app_manifest[0]
-        existing_manifests = {}
-        for f in ctx.files.program:
-            if f.extension == "manifest":
-                existing_manifests[f.basename] = True
-        for f in ctx.files.program:
-            if f.extension == "exe":
-                mname = f.basename + ".manifest"
-                if mname not in existing_manifests:
-                    
lines.append("program\t{}\t{}".format(app_manifest_src.path, mname))
-        # soffice.exe and soffice.bin are renamed at staging time
-        if "soffice.exe.manifest" not in existing_manifests:
-            
lines.append("program\t{}\tsoffice.exe.manifest".format(app_manifest_src.path))
-        if "soffice.bin.manifest" not in existing_manifests:
-            
lines.append("program\t{}\tsoffice.bin.manifest".format(app_manifest_src.path))
-
     # ── program/ — RDB files (filter .rdb from multi-file targets) ───────────
     for f in ctx.files.types_rdb:
         if f.extension == "rdb":
@@ -109,8 +88,7 @@ def _stage_install_impl(ctx):
         ctx.files.offapi_rdb +
         ctx.files.services_rdb +
         ctx.files.ooo_srdb +
-        ctx.files.registry +
-        ctx.files.vc90_app_manifest
+        ctx.files.registry
     )
 
     ctx.actions.run(
@@ -164,13 +142,6 @@ stage_install = rule(
             allow_files = True,
             doc = "XCD files → share/registry/",
         ),
-        # Generic VC90 CRT application manifest — auto-staged as <exe>.manifest
-        # for every EXE in program/ that doesn't already have an explicit one.
-        "vc90_app_manifest": attr.label(
-            default       = "//main/external/msvcp90:vc90_app_manifest",
-            allow_files   = True,
-            doc           = "VC90 CRT app manifest staged as <exe>.manifest 
for EXEs without one",
-        ),
         # Tool deps
         "_perl": attr.label(
             default         = _PERL,
diff --git a/main/testtools/BUILD.bazel b/main/testtools/BUILD.bazel
index dba8b2b03a..64abae8c5c 100644
--- a/main/testtools/BUILD.bazel
+++ b/main/testtools/BUILD.bazel
@@ -235,7 +235,6 @@ staged_run_test(
         ":bridgetest_uno_types",
         "//main/cppu:cppu3",
         "//main/cppuhelper:cppuhelper3MSC",
-        "//main/external/msvcp90:crt_dlls",
         "//main/registry:reg",
         "//main/sal:sal3",
         "//main/salhelper:salhelper3MSC",
@@ -398,7 +397,6 @@ staged_run_test(
         ":bridgetest_testcomponent_jar",
         ":bridgetest_uno_services_java",
         ":bridgetest_uno_types",
-        "//main/external/msvcp90:crt_dlls",
     ],
     env = {} | jre_home_env(),
     uno_install = "//main/staging:install",
@@ -492,7 +490,6 @@ staged_run_test(
         ":cppobj.uno",
         ":bridgetest_uno_services",
         ":bridgetest_uno_types",
-        "//main/external/msvcp90:crt_dlls",
     ],
     uno_install = "//main/staging:install",
     size = "small",
diff --git a/main/tools/BUILD.bazel b/main/tools/BUILD.bazel
index 9c592769e2..182a915c09 100644
--- a/main/tools/BUILD.bazel
+++ b/main/tools/BUILD.bazel
@@ -234,7 +234,7 @@ cc_library(
 # ── tools_pathutils — GoogleTest_tools_pathutils.mk ───────────────
 # Tests tools::buildPath (Windows path-mangling).  buildPath lives in the
 # static ooopathutils lib (pure sal/types.h + <windows.h>, no DLL), so the
-# test links it directly and needs only the VC90 CRT at run time — no tl.dll.
+# test links it directly and needs only the C runtime at run time — no tl.dll.
 # precompiled_tools.hxx (force-included by the source) pulls a wide header set
 # (basegfx/offapi/comphelper/cppuhelper/i18npool/sal), hence the header deps;
 # none are *used* so no runtime symbols are pulled.
diff --git a/main/unodevtools/BUILD.bazel b/main/unodevtools/BUILD.bazel
index 588e7ba8e6..b34ee4c8f6 100644
--- a/main/unodevtools/BUILD.bazel
+++ b/main/unodevtools/BUILD.bazel
@@ -146,18 +146,8 @@ cc_binary(
         "//main/stlport:stlport",
         "//main/udkapi:udkapi_idl_headers",
     ],
-    # The VC90-CRT manifest, compiled to a .res and linked in at RT_MANIFEST
-    # id 1.  Unlike cppumaker/javamaker — build-internal tools whose runner
-    # stages an external <exe>.manifest beside them — this one is an SDK tool a
-    # user runs from wherever it was installed, so it has to carry its own
-    # activation context or the /MD CRT is unresolvable.  Upstream gets the
-    # same effect from solenv, which embeds a manifest in every executable.
-    additional_linker_inputs = [
-        "//main/external/msvcp90:vc90_app_manifest_res",
-    ] + _IMPLIBS,
-    linkopts = [
-        "$(execpath //main/external/msvcp90:vc90_app_manifest_res)",
-    ] + _IMPLIB_LINKOPTS + ["/MANIFEST:NO"],
+    additional_linker_inputs = _IMPLIBS,
+    linkopts = _IMPLIB_LINKOPTS + ["/MANIFEST:NO"],
     visibility = ["//visibility:public"],
 )
 

Reply via email to