Well You could try to do a windows repair, (not a restore!) but since You have a COMPAQ, i am willing to bet that you have a set of cd's that are a complete image.
You might be able to try the system restore utility, but just make sure you dont reformat the drive. UNless you have a back up. This is about the only way to repair a registry