Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Internally, <code>REG_MULTI_SZ</code> (<code>Type="multiString"</code>) values are represented by a sequence of null-terminated strings, terminated by an empty string.</p> <p>While <a href="http://msdn.microsoft.com/en-us/library/ms724884.aspx" rel="nofollow">this MSDN page</a> clearly states that <em>it is not possible to include a zero-length string in the sequence</em>, tools like WiX do allow for writing empty strings to the registry. Registry Editor, while displaying such values properly in some places, will remove empty strings before saving.</p> <p>So your example</p> <pre><code>&lt;RegistryValue Type="multiString" Name="polling_manifest" Value="" /&gt; </code></pre> <p>which can also be written as follows to make its intention more clear</p> <pre><code>&lt;RegistryValue Type="multiString" Name="polling_manifest"&gt; &lt;MultiStringValue&gt;&lt;/MultiStringValue&gt; &lt;/RegistryValue&gt; </code></pre> <p>will be written to the registry as an empty string, followed by a \0 character, followed by the sequence-terminating \0 character. With each character represented by two bytes, the entire sequence is exported as <code>"polling_manifest"=hex(7):00,00,00,00</code>.</p> <p>While testing this, I found that .NET, at least in version 4, doesn't use c-style string processing for reading <code>REG_MULTI_SZ</code> values, and can clearly process empty strings. Using code like yours clearly returned a string array containing one empty string element.</p> <p>I noticed you're using the 64-bit registry view in your code, however it is unclear whether your value will be written to this registry view. Furthermore key path and value name are read from configuration; are you sure they are correct?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload