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: 
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: 
Copyright © 2021 Jogjafile Inc.
@Stefan was correct. I had a directory name "Programma's". This was causing the problem. After renaming it "Programs", the problem was solved.