After selecting ruby.exe in the screen below, it loads for a while and then it fails and nothing happens.
Ruby installation was done succesfully I think because after doing ruby -v in cmd it gives this:
Error:
@Stefan was correct. I had a directory name "Programma's". This was causing the problem. After renaming it "Programs", the problem was solved.