Hi, indeed if you google you can see others also have this problem.
I checked the script again in vcvarsx86_amd64.bat.
Ok, your registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7 is good, but can you also check for two others if they exist?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7
and
HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\SxS\VS7
If they exist, they could block the script from seeing the correct one.