DirectX setup error while re-installing a relatively old game

Hi all,
I Have been trying for a couple of days to reinstall a relatively old game with no luck.
Right after that there is a DirectX setup error.

regedit.exe – Bad Image
C:\WindowsSystem32ulib.dll is either not designed to run on
Windows or it contains an error. Try installing the program again using
the original installation media or contact your system administrator or
the software vendor for support.
OK
I have searched the net for someone else who is having a similar problem. Does anyone have any clue as to what I can do?
Waiting for your suggestions.
Thanks in advance.
