You can use Super Backup, from the app store, to backup your calls and sms. Back them up and copy the backup to your computer or cloud service. (I personally use dropbox) then you can copy them back and restore them once you have the app installed again.
I also believe HTC has a transfer tool...