Have InstallDirRegKey also strip off file names for DLLs because sometimes the only way to get the directory you need is to look up a COM component by CLSID (eg. an install that only installs COM components). This is already entered in the enhancement / feature tracker with ID: 1124122. I need it too.
Add .dll condition to source\exehead\Ui.c