I've never had MinGW on this machine before. I downloaded and installed the latest version using their GUI installer for Windows, then I installed Code::Blocks. MinGW didn't add anything to the PATH variable itself so I had to add it myself so I could run gcc from cmd.exe. If my installation is defective it has to be because of a defect in their installer or an incompatibility with Vista/7.