Please follow
this guide to reinstall PostgreSQL. If you deleted the C:\Program Files\PostgreSQL directory completely, your database will be lost and you will need to reimport your hands. However if you didn't do that (and it doesn't get deleted by default) your data may still be safe; just follow the PDF and it'll help you get things set up properly.