title: WIX Combobox Bind Values
body: <p>I am trying to populate values using custom actions and want to bind the values into combobox which is inside product.wxs.</p>
  
  <p>Can anyone guide me how to bind values if I want to populate a list of countries inside the combobox?</p>
  
  <p>I am struggling with how to pass this value so the values will show inside combox while executing my MSI setup.</p>
  
  <p>Below provide the code which I am trying:</p>
  
  <pre><code>    public static ActionResult FillList(Session xiSession)
      {
  
          Dictionary&lt;string, string&gt; _co = new Dictionary&lt;string, string&gt;();
          _co.Add(String.Empty, String.Empty);
          _co.Add("US", "United States");
          _co.Add("CA", "Canada");
          _co.Add("MX", "Mexico");
  
          xiSession.Log("Return success");
          return ActionResult.Success;
      }
  </code></pre>
  
  <p>
  
      
          </p>
  
  <pre><code>    &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
      &lt;MediaTemplate /&gt;
  
      &lt;Feature Id="ProductFeature" Title="SetupProjectComboTest" Level="1"&gt;
          &lt;ComponentGroupRef Id="ProductComponents" /&gt;
      &lt;/Feature&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;UI&gt;
    &lt;UIRef Id="WixUI_Mondo" /&gt;
  
    &lt;Dialog Id="MyCustomDlg"  Width="500" Height="260"&gt;
      &lt;Control Id="ComboBoxMain" Type="ComboBox" X="10" Y="60" Width="300" Height="17" Property="COUNTRIES" /&gt;
      &lt;Control Id="ButtonMain" Type="PushButton" X="320" Y="60" Width="40" Height="17" Text="Show"&gt;
        &lt;Publish Property="COMBOVALUEFORMATTED" Order="1"  Value="[COUNTRIES]" /&gt;
      &lt;/Control&gt;
      &lt;Control Id="LabelMain" Type="Text" X="10" Y="80" Width="360" Height="17" Property="COMBOVALUEFORMATTED" Text="[COMBOVALUEFORMATTED]" /&gt;
  
    &lt;/Dialog&gt;
  &lt;/UI&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
          &lt;Directory Id="ProgramFilesFolder"&gt;
              &lt;Directory Id="INSTALLFOLDER" Name="SetupProjectComboTest" /&gt;
          &lt;/Directory&gt;
      &lt;/Directory&gt;
  &lt;/Fragment&gt;
  
  &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
          &lt;!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --&gt;
          &lt;!-- &lt;Component Id="ProductComponent"&gt; --&gt;
              &lt;!-- TODO: Insert files, registry keys, and other resources here. --&gt;
          &lt;!-- &lt;/Component&gt; --&gt;
      &lt;/ComponentGroup&gt;
  &lt;/Fragment&gt;
  </code></pre>
  
  <p></p>