I am trying to install mingw-w64 onto Windows. However I receive an error, "the file has been downloaded incorrectly". Redownloading the setup file again from sourceforge does not fix the problem. Is there an alternative way to install it or am I doing something wrong?
You can directly download the archive of MinGW64 with your chosen configuration:
https://sourceforge.net/projects/mingw-w64/files/mingw-w64/
Once the compressed file is downloaded, you have just to extract and copy/paste the MinGW64 folder (with the pre-compiled libraries) to your chosen folder (in my case: C:\mingw64
).