It can occur in almost any utility, so tracking down the issue can be tricky.
There are many reasons whydownloading a DLL file is a bad idea.
Restore msi.dll from the Recycle Bin.

The easiest possible cause of a “missing” DLL file is that you’ve mistakenly deleted it.
Run a virus/malware scan of your entire system.
Use System Restore to undo recent system changes.
Reinstall the program that uses the file.
If the error comes up whenever you use a particular program, reinstalling the program should replace the file.
Try your best to complete this step.
Install any available Windows updates.
Manyservice packsand otherpatchesreplace or update some of the hundreds of Microsoft distributed DLL files on your rig.
The msi.dll file is included in the KB2918614 security update.
initiate the sfc /scannow System File Checker commandto replace a missing or corrupt copy of the msi.dll file.
Since this file is provided by Microsoft, theSystem File Checkertool should restore it.
Update the drivers for hardware devicesthat might be related to msi.dll.
This file may or may not be related to video cardsthis was just an example.
The key here is to pay very close attention to the context of the error and troubleshoot accordingly.
Roll back a driver to a previously installed versionif errors began after updating a particular hardware rig’s driver.
Test your memoryand thentest your hard drive.
If the hardware fails any of your tests,replace the memoryorreplace the hard driveas soon as possible.
Repair your installation of Windows.
Use a free registry cleanerto repair issues in the registry.
We rarely recommend the use of registry cleaners.
Perform a clean installation of Windows.
This will erase everything from thehard driveand install a fresh copy of Windows.
If none of the steps above correct the msi.dll error, this should be your next course of action.
All the information on your hard drive will be erased during a clean install.
Troubleshoot for a hardware problemif any errors persist.
After a clean install of Windows, your DLL problem can only be hardware related.
Need More Help?
In some cases, msi.dll errors could indicate aregistryproblem, avirusor malware issue, or even ahardwarefailure.
There are several ways msi.dll errors can show up on your rig.