"Generate project file" asks me to choose a program.

When I try to “generate project files” by right-clicking on the project, windows asks me to select a program to open (just like if I had right-clicked and selected “open with”).

If I choose the unreal version selector nothing happens and it asks me again.

If I choose VS Studio it opens a cpp file, but doe snot generate the .sln

What should I do to solve this?