You can try backing up the boinc folder from the programdata folder on your computer. Then after reinstalling windows and installing the boinc client, do not attach it to any projects. Just copy the boinc folder you backed up into the programdata again. Let me know if you need clarification.