No, the power was not interrupted. This was on a laptop whose battery was continuously being charged. Haven't tried running setup.exe again because it is so time-consuming. I may just change course and upgrade the Vista I have on another partition.
Addendum: Just tried upgrading a Vista SP2 which also failed, then tried a clean install, but still got the same error, so something else is wrong, it's not the upgrade method.