If you're looking for a more generic solution, just follow these steps.
For example, we want to register msi.dll. Follow below steps to complete the register process.
For 32-bit version win7 system:
1.Win + R, type command in the search box, right click on Command Prompt -> Run as administrator.
2.Type cd\, press enter.
3.Type regsvr32 msi.dll, press enter. Click OK on the new appeared window.
1. Open Device Manager.
2. Follow the instructions in the preceding procedure to uninstall the device.
3. If you are prompted to restart the computer, follow these steps:
Plug in the device and then restart the computer. The device will be detected and reinstalled after Windows restarts.
Follow any instructions on-screen to complete installation.
4. If you are not prompted to restart the computer, follow these steps:
In Device Manager, in the Action menu, click Scan for hardware changes.
Follow the instructions on the screen.