'Composer installation Windows 10 fails

I've been trying to install composer.exe on Windows 10, but the following error keeps appearing. I have looked it up on Google, but nothing helps.

The command interpreter did not run correctly: C:\WINDOWS\system32\cmd.exe

It returned the wrong exit code [exit code -1073741502] GetLastError: .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source