Why my exe is looking for version.dll locally? lazarus / 21-General ---------------------------------------------------------------------- f.verrini ยท 2023-07-11 14:53 Hello I have an issue with the executable I generate in Lazarus ( I have the same problem with any project in the example folder found in Lazarus installation folder) and the windows dll version.dll. I know windows has an order https://learn.microsoft.com/en- us/windows/win32/dlls/dynamic-link-library-search-order in which the OS search for the librarys, I tried using the option LOAD_WITH_ALTERED_SEARCH_PATH but I fear I have to static link the library and no dinamically. How can I have my exe to look for the version.dll library only on the windows system directory?