BuildPipeline Resolution Dialog Setting

Hi, I am using this to build standalone player:

private static string[] scenes = new string[] {"Assets/Scenes/loader.unity", "Assets/Scenes/gamelevel.unity", "Assets/Scenes/gameover.unity"};

public static void WindowsStandalone()
{  
PlayerSettings.productName = "Game With Resolution Dialog Setting Enabled";
BuildPipeline.BuildPlayer(scenes, "Distribution/Win/MyGameStandalone.exe", BuildTarget.StandaloneWindows, 0);

}

Question: How can I set in this C# script Resolution Dialog Setting to be "Disabled" or in general other then set up in Unity Editor. I need to build both, one with and one without initial dialog showing up.

PlayerSettings.displayResolutionDialog = ResolutionDialogSetting.Disabled;