Why does Windows 10 no longer load required DLLs from %PATH% and executable file’s directory’s?
Just updated to Windows 10 1809 build 181305.1003 and it appears that if a DLL is required on start‑up (before the application starts) it doesn’t gets loaded leaving for example an error message stating Qt5Gui.dll
couldn’t be found even if Qt5Gui.dll
is in the same folder as the .exe
file to be started.
Looks like ᴅʟʟ loading from directory from which the executable loaded is disabled while third party DLL loading from %systemroot%\System32
still works. How to fix this since this prevent applications from using Qt5 ?
You should disable HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode
on install! It may even fix other DLL problems that the user has!
And if that stops working we can always go back to installing all the DLLs directly into %SystemRoot%\System32
, like in the good old days!