title: Temporary rows added by custom-action are ignored by WriteRegistryValues
body: <p>I'm writing a WIX script.</p>
  
  <p>I have a custom-action that adds rows dynamically to the Registry table:</p>
  
  <pre><code>function AddRegistry() 
  {
      var registryView = Session.Database.OpenView("SELECT * FROM Registry");
      registryView.Execute();
  
      var record = Session.Installer.CreateRecord(6);
      record.StringData(1) = "Unique123456";
      record.IntegerData(2) = 2;
      record.StringData(3) = "Software";
      record.StringData(4) = "my_registry_string";
      record.StringData(5) = "value";
      record.StringData(6) = "MyComponent";
  
      registryView.Modify(7, record); //InsertTemporary
      registryView.Close();
  
      return 1; //Ok
  }
  </code></pre>
  
  <p>The custom-action is scheduled to run as "immediate" and before the "WriteRegistryValues" action:</p>
  
  <pre><code>&lt;CustomAction Id="AddRegistry" BinaryKey="CustomActionJS" 
                JScriptCall="AddRegistry" 
                Execute="immediate" Impersonate="no" /&gt;
  
  &lt;InstallExecuteSequence&gt;
      &lt;Custom Action="AddRegistry" Before="WriteRegistryValues" /&gt;
      &lt;Custom Action="CheckRegistry" After="WriteRegistryValues" /&gt;
  ...
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>I've added a 2nd custom-action that enumerates the Registry table, and shows all the entries just find (fixed and temporary).</p>
  
  <p>However, when the WriteRegistryValues is being executed (it is deferred, as far as I understand), it only writes the fixed entries. My dynamic entries are ignored, and not added to the registry.</p>
  
  <p>A fixed Registry entry to the same registry path works fine:</p>
  
  <pre><code>&lt;Component Id="MyComponent"&gt;
      &lt;RegistryValue Id="Unique11111" Root="HKLM" Key="Software" 
                     Name="my_fixed_value" Value="my_value" 
                     Action="write" Type="string"/&gt;
  &lt;/Component&gt;
  </code></pre>
  
  <p>Any idea what I'm doing wrong?</p>