An error occurred while trying to generate project files.

Sorry for the late (almost 1.5 months) answer. Too much work lately and no time for unreal forum…

You must not double click the unrealbuiltool.exe because it needs the correct arguments. You must write the command I wrote you in a command line

  1. Windows + R > cmd > Enter
  2. paste the follow command I wrote above
    "C:/Program Files/Epic Games/UE_5.5/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe" -projectfiles -project="C:/Users/Rüveyda/Documents/Unreal Projects/MyProject/MyProject.uproject" -game -rocket -progress
    Caution: The directory of your project. You must change it if you are trying to generate another project.
  3. Now you should see the Generating VisualStudio project files: etc… or if any errors found.

Alternative: I you want to double click a .bat file:

  1. Create a new .bat file
  2. paste and save the above command
  3. You can add the PAUSE command in the last line of .bat file to check the generating of project files was ok

If you run in the cmd just the:
"C:/Program Files/Epic Games/UE_5.5/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe"
it will print you all the available arguments can be used