if it's the same as the desire
- root phone (unrevoked nowadays, previously gold card etc..)
- install a recovery (or fake flash), Amon-RA/clockwork)
- clear all caches via recovery
- flash new rom .zip via recovery
have a look on XDA-Dev in the section for your phone, all the tools should be there along with the roms