The procedure entry point SetDefaultDllDirectories could not be located in the dynamic link library KERNEL32.dll.

Hi,

I am trying to install a program but it keeps giving me an error about an entry point called SetDefaultDllDirectories that can't be found in the DLL file KERNEL32. Another program tells me it is missing the AddDllDirectory entry point too. How do I fix this?

Answer
Answer

Before support for Windows 7 ended on January 14, 2020, had you kept your system updated with Windows Update?

There were some old Windows Security Updates that specifically modified kernel32.dll relating to three "entry points," including both of the ones you mention (SetDefaultDllDirectories, AddDllDirectory, and RemoveDllDirectory).  Navigate to C:\Windows\System32\kernel32.dll.  Right-click on that file, select Properties, and then select the "Details" tab.

What is the file version of your copy of kernel32.dll?

It should be like this:

Image

KB4454174, from September 2018, includes version 24231 of kernel32.dll.  Although that update obviously has been superseded (it's no longer on the system on which the screenshot was taken), I don't know what update includes the most recent version. 

However, if your version is earlier than 24231, you might either run Windows Update and see what is offered to you or perhaps just download the appropriate KB4454174 and see if it will install.  Do create a System Restore point before you attempt the installation.  Download here:

https://www.catalog.update.microsoft.com/Search.aspx?q=KB4457144

If that didn't help, then with respect to the Discord installer issue, see the steps here:  https://support.discord.com/hc/en-us/articles/209099387--Windows-Installer-Errors


-----
LemP
Volunteer Moderator
MS MVP (Windows Desktop Experience) 2006-2009
Microsoft Community Contributor (MCC) 2011-2012

132 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated November 15, 2024 Views 106,072 Applies to: