Packaged ue4 sample project aimet at 64-bit does not work, 32-bit does

Using ue 4.21, i have tried packaging one of the template projects(rolling) for 64-win, and i can’t launch the resulting .exe. The program shortly shows up in the task manager, but nothing pops up on screen, and it closes in task manager again.

If i package the same project for 32-win, everything works as expected, and i can “play the game”.

If i try to do the same thing in ue5.3, both versions works.

The pc is new, i have installed visual c++ redistributables, and directX runetime. Nvidia drives have been installed both manually and through geforce experince.

Do you have any ideas what the issue could be?

System info:

Windows 10, tried updating to 11, 64-bit
Unreal Engine Editor v4.21
cpu: I9
ram: 64gb ddr5
Grapichs: RTX 4090

Hello,
It seems you’re encountering an issue with packaging your Unreal Engine project for 64-bit Windows. Let’s troubleshoot this step by step:

Launch Project Before Packaging:
First, ensure that you’ve launched your project in the Unreal Engine Editor before attempting to package it. Sometimes, if you haven’t opened the project at least once, the packaging process may not complete correctly.
If you encounter any errors during packaging, address them first.
Missing UE4Game Binary:
If you’re still facing issues, check if you’re getting the error message: “PackagingResults: Error: Launch failed! Missing UE4Game binary. You may have to build the UE4 project with your IDE.”
To resolve this, make sure you have Visual Studio installed and the latest version of the .NET Framework. You can download the .NET SDKs for Visual Studio here.
After installing, restart your computer.
In your project settings, navigate to Project > Packaging > Project > Build and set it to “Always.”
Now try packaging your project again.
DX12 Parameter:
If you’re using DirectX 12 (DX12), try running your game with the “-dx12” parameter.
Create a shortcut to your game’s .exe file, right-click on it, go to Properties, and in the Target field, add a space followed by “-dx12” at the end.
For example: {path_to_your_exe}.your_game.exe -dx12
Upgrade Unreal Engine:
Ensure you’re using the latest version of Unreal Engine. If not, consider upgrading to the most recent version, as some issues might be resolved in newer releases.
UE5.3 Compatibility:
It’s great that your project works in UE5.3. If feasible, consider migrating your project to UE5.3 for better compatibility.