From e7f1b771d4b24ac6da1ac79b1b6c4b39aa3394b5 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Mon, 27 Jan 2025 18:38:50 +0100 Subject: [PATCH] [windows] when running installer, search for DLLs in the system directory only since the installer itself doesn't rely on any custom DLLs. This fixes #2482. Signed-off-by: Vitalii Koshura --- installer/installer_setup/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/installer_setup/main.cpp b/installer/installer_setup/main.cpp index bd4f4e8551..8b3d1e4d29 100644 --- a/installer/installer_setup/main.cpp +++ b/installer/installer_setup/main.cpp @@ -177,6 +177,7 @@ void ShowWindow(HINSTANCE hInstance, int nCmdShow) { } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow) { + SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32); ShowWindow(hInstance, nCmdShow); ExtractResourceAndExecute(IDB_MSI, "BOINC.msi"); return 0;