I tried to install sql server 2017 on windows server 2019 but the following error appeared to me:

There is a Problem with this Windows Installer package. A DLL required for this installation to complete could not be run. Contact you support personnel or package vendor.

Here are the solutions that I have tried that did not work!

  • Update Windows
  • Uninstall then reinstall SQL Server 2017
  • Completely change installable "another SQL Server 2017, SQL Server 2014, SQL Server 2019".
  • I tried to install the English version
  • I checked the administrator permissions on the file c:/windows/utilisateur/appdata/local/temp, it has total control.
  • I checked the administrator permissions on registry editor/HKEY_LOCAL_MACHINE/CurrentControlSet/services/msiserver/security, it has total control.
  • I copied the file dll (sqlncli11.dll) into syswow64 and system32.
  • I also checked the system files with the command sfc/scannow to see if there are any corrupt files.
  • And when I install I always run as administrator.
  • How was there anything to uninstall if the initial installation failed? (re: "Uninstall then reinstall SQL Server 2017")
    – J.D.
    Commented Nov 4, 2021 at 11:27
  • Yes, there are Microsoft ODBC Driver 17 for SQL Server, Microsoft OLE DB Driver 17 for SQL Server and Microsoft VSS Writer for SQL Server 2017 !! ie: all that is related to SQL server that I find in the programs and functionalities. Because the installation hangs in the middle of the execution!
    – user241627
    Commented Nov 4, 2021 at 14:13
  • 1
    Your question mentions a "missing DLL", but the error message in fact says that the DLL "could not be run", which is a different problem. Did you check the setup logs for details?
    – mustaccio
    Commented Nov 4, 2021 at 14:54

1 Answer 1


Even I had the same issue and tried all the steps but it didn't work. I followed the below link and it worked for me.


  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Nov 15, 2021 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.