<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it possible to use RegistrySearch result in RegistryValue?</title><link>http://blogs.technet.com/alexshev/archive/2009/05/11/is-it-possible-to-use-registrysearch-result-in-registryvalue.aspx</link><description>Русская версия здесь . This post is an answer to this question sent to wix-users mailing list: Is it possible to use RegistrySearch result in RegistryValue? Something like this: &amp;lt;Property Id="PROP1"&amp;gt; &amp;lt;RegistrySearch Id="search1" Root="HKLM" Key="somekey"</description><dc:language>ru-RU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Is it possible to use RegistrySearch result in RegistryValue?</title><link>http://blogs.technet.com/alexshev/archive/2009/05/11/is-it-possible-to-use-registrysearch-result-in-registryvalue.aspx#3239492</link><pubDate>Tue, 12 May 2009 09:48:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3239492</guid><dc:creator>Neil Sleightholm</dc:creator><description>&lt;P&gt;Alex, useful post but could you explain the prepending .. bit, I am not sure what this was for.&lt;/P&gt;</description></item><item><title>re: Is it possible to use RegistrySearch result in RegistryValue?</title><link>http://blogs.technet.com/alexshev/archive/2009/05/11/is-it-possible-to-use-registrysearch-result-in-registryvalue.aspx#3239511</link><pubDate>Tue, 12 May 2009 10:18:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3239511</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Sorry, the idea was that to add integer 2 to registry value we need to add prefix '#' to it. So, writing &amp;lt;RegistryValue Type=&amp;quot;string&amp;quot; Value=&amp;quot;#2&amp;quot; ... /&amp;gt; will actually create registry value of type REG_DWORD with value 2. Description for RegLocator is saying that REG_DWORD value 2 will be represented during AppSearch as string value &amp;quot;#2&amp;quot; in property. &amp;nbsp;Because I wanted to show actual string read from registry during AppSearch, I prepended it with &amp;quot;..&amp;quot; so during writing this value to registry it will be treated as string, not as REG_DWORD.&lt;/p&gt;
&lt;p&gt;I think, I need to clarify it little bit better. &amp;nbsp;I'll think about it tomorrow.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item></channel></rss>