Hi,
Please check whether you are using the SQL server which is compatible to your OS.
It seems that your windows is 64 bit and you are using 32 bit sql server or vice versa.
Please have a check on that.
As well as please check why you can't install MS sql server 2008 R2 in your windows instead of 2005 SQL server.
Thanks and Regards,
Vimal