title: The Fragment element contains an unhandled extension element 'util:RegistrySearch'
body: <p>Learning how to create Wix Booloader so that I can install .NET framework with my msi install package. Anyway I am stuck with an error for an unhandled extension element. Code is below</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
  # This comment is generated by WixEdit, the specific commandline
  # arguments for the WiX Toolset are stored here.
  
  candleArgs: "&lt;projectfile&gt;" -ext WixBalExtension
  lightArgs: "&lt;projectname&gt;.wixobj" -ext WixBalExtension
  --&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
   xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"&gt;
  
  &lt;Bundle UpgradeCode="80B0ECBE-CAAE-4B6A-9705-49F0232B0C24" 
          Version="0.0.1"&gt;
      &lt;BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /&gt;
      &lt;Chain&gt;
          &lt;PackageGroupRef Id="Netfx45" /&gt;
      &lt;/Chain&gt;
  &lt;/Bundle&gt;
  
  &lt;Fragment&gt;
      &lt;util:RegistrySearch Root="HKLM" 
                           Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" 
                           Value="Version" 
                           Variable="Netfx4FullVersion" /&gt;
      &lt;util:RegistrySearch Root="HKLM" 
                           Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" 
                           Value="Version" 
                           Variable="Netfx4x64FullVersion" 
                           Win64="yes" /&gt;
      &lt;!-- .NET 4.5 only installed if Vista or higher AND it's not already installed--&gt;
      &lt;!-- .NET 4.5 only installed if Vista or higher AND it's not already installed--&gt;    
  &lt;PackageGroup Id="Netfx45"&gt;
          &lt;ExePackage Id="Netfx45" 
                      Cache="no" 
                      Compressed="yes" 
                      PerMachine="yes" 
                      Permanent="yes" 
                      Vital="yes" 
                      InstallCommand="/q" 
                      SourceFile="C:\Users\ProRip\Downloads\dotnetfx45_full_x86_x64.exe" 
                      DetectCondition="(Netfx4FullVersion=&amp;quot;4.5.50709&amp;quot;) AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&amp;quot;4.5.50709&amp;quot;))" 
                      InstallCondition="(VersionNT &amp;gt;= v6.0 OR VersionNT64 &amp;gt;= v6.0) AND (NOT (Netfx4FullVersion=&amp;quot;4.5.50709&amp;quot; OR Netfx4x64FullVersion=&amp;quot;4.5.50709&amp;quot;))" /&gt;
      &lt;/PackageGroup&gt;
  &lt;/Fragment&gt;
  </code></pre>
  
  <p></p>
  
  <p>Error message is</p>
  
  <pre><code>error CNDL0200 : The Fragment element contains an unhandled extension element 'util:RegistrySearch'.  Please ensure that the extension for elements in the 'http://schemas.microsoft.com/wix/UtilExtension' namespace has been provided.
  error CNDL0200 : The Fragment element contains an unhandled extension element 'util:RegistrySearch'.  Please ensure that the extension for elements in the 'http://schemas.microsoft.com/wix/UtilExtension' namespace has been provided
  </code></pre>
  
  <p>Can anyone please explain what my error is I have included the correct namespace and I can't see a reason for the error!</p>