How do i install Windows 7 over Vista without losing all my data?

I have a PC that has vista installed on it, it does not boot up but just shuts down when it reaches the windows screen. I want to install windows 7 on it to rid the problem but i do not want to lose my files. Is there any way of doing this?