Click the Start button.
Type "command" in the search box... DO NOT hit ENTER yet!
While holding CTRL-Shift on your keyboard, hit ENTER.
You will be prompted with a permission dialog box.
Click Yes.
Type the following command: regsvr32 /u directui.dll.
Hit ENTER. This will UN-REGISTER your file.
Type the following command: regsvr32 /i directui.dll.
Hit ENTER. This will RE-REGISTER your file.
Close the command prompt window.
Re-start the program associated with directui.dll error.