Raw 7 is compatible with Cs6 version of Adobe software, not with CS4.
and to open the Nikon D5100 raw files the minimum camera raw plugin required in 6.4
You can use the DNG converter with the CS4 to open this files, I think that will be the best option.
Thanks for your support. I still have issues I am working on.