Sonntag, 8. August 2021

A dll required for this install to complete could not be run - surprising solution!

When trying to install a new program on my Win 10 PC, the setup aborted with an error message that was not very informative. In essence it said: "A dll required for this install to complete could not be run". And now? Which library (dll) should it be, what do I have to do to make it work? If you google this problem, a few million finds are displayed - so that's definitely not just my problem. There are many offers of help (which, as is so often the case, have copied from each other) and essentially amount to a lack of rights, missing updates or system repairs. All very time-consuming and - mostly completely useless, as I could see from the many frustrated comments in the forums. In any case, none of this helped me.

So I was now looking for a way to have a log written during the installation, in which the disturbing DLL will hopefully appear with its full name, so that I can replace it or provide it with rights if necessary. There is actually a command prompt that does just that:

msiexec.exe / i "The MSI-file To install (full path)" / L * vx "The log-file to write.txt (will be created / overwritten)"

The command prompt MUST run with administrator rights!

I quickly created a batch file with the above command and placed it on the desktop. I could then simply start it as admin with a right click. And now the highlight: the setup ran in this way without any further problems, the program was installed without errors. The log was also generated and was full of entries that I did not understand. Anyway, the DLL problem was solved!

P.S: Maybe the cracks at Microsoft should think hard about why it works this way and not the 'normal' way?