Input SaveConfig() problems in a standalone game

I have made a config system based on GameUserSettings and added Input remapping to make it more complete.

Everything works fine when testing in PIE, but when I run the game in Standalone the Input.ini file is not created/updated.
The Input.ini is however read by the standalone game if I run and save the config from PIE first.

The code looks something like this



UInputSettings* InputSettings = GetMutableDefault<UInputSettings>();

// Read
InputSettings->LoadConfig();

// Change
Change InputSettings->AxisMappings/ActionMappings

// Apply the changes
PlayerController->PlayerInput->ForceRebuildingKeyMaps(true);

// Save changes
InputSettings->SaveKeyMappings();


What switches do I need to flip to get this working in a standalone game?