Engine User Setting

Setup

Setup your project

Go to Edit > Project Settings > Windows.

Check the boxes under Targeted RHIs tab that you need.

Make sure you are packaging your game using Shipping option.

UE4 video tutorial

UE5 video tutorial

On this page