Skip to content

Commit 3161bbf

Browse files
authored
Merge pull request #6029 from BOINC/vko_protect_msi_launch
[windows] when running installer, search for DLLs in the system directory only since the installer itself doesn't rely on any custom DLLs.
2 parents f9cb224 + e7f1b77 commit 3161bbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

installer/installer_setup/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void ShowWindow(HINSTANCE hInstance, int nCmdShow) {
177177
}
178178

179179
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow) {
180+
SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32);
180181
ShowWindow(hInstance, nCmdShow);
181182
ExtractResourceAndExecute(IDB_MSI, "BOINC.msi");
182183
return 0;

0 commit comments

Comments
 (0)