It may depend a bit on how exactly you tried to perform the upgrade. The Release Notes give a description of how to do it (e.g. in the case of 3.027, it's probably best to simply uninstall all previous versions before then applying the full installer. With a complete installation the missing "mpir.dll" shouldn't occur to begin with.
Release Notes and installers can be found
on our Downloads page.