app: ship the VC++ runtime with the installer

The app, the daemon, obs.dll and every OBS plugin import VCRUNTIME140.dll,
and the plugins reach for MSVCP140.dll and VCRUNTIME140_1.dll as well.
Windows carries the UCRT but none of those, so an installer without them
starts nothing on a machine that never ran Visual Studio; this one only
worked because the redistributable happened to be installed here.

The three DLLs live in vendor/vcruntime (they are on the redistributable
list) and packager.toml copies them beside the exes.
This commit is contained in:
vhaudiquet committed 2026-11-19 22:19:38 +01:00
1 parent 72a6da0ca3
commit 20303d5ddc
5 files changed
+10 -4

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ resources = [
{ src = "../record-daemon/target/release/rtmp-services", target = "rtmp-services" },
{ src = "../record-daemon/target/release/iconengines", target = "iconengines" },
{ src = "../record-daemon/target/release/styles", target = "styles" },
# The C++ runtime the exes and every OBS plugin import. Windows ships the UCRT but not these,
# so a machine without the VC++ redistributable would not start the app.
{ src = "vendor/vcruntime/*.dll", target = "." },
]
[nsis]