how to Switch RHI Module in runtime

how to switch RHI module in runtime ( release )?

i try that Flush the config file like this

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12

by

GConfig->SetString(TEXT(“/Script/WindowsTargetPlatform.WindowsTargetSettings”), TEXT(“DefaultGraphicsRHI”), %ModuleName%, GEngineIni);
GConfig->Flush(true, GEngineIni);

and Reload Game, Check RHI Module from HardwareInfo

FHardwareInfo::GetHardwareInfo(NAME_RHI);

it successfully in development env, but in Release, it doesnt work correctly

how can i do this???