Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
http://stackoverflow.com/questions/20698895/wix-installer-schema-not-found[^]
Could you please help me? I am stuck with it!
Any help & suggestion will be appriciated.


The budle.wsx is below.

XML
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> 
  <Bundle Name="ClientSetupHelper" Version="1.0.0.0" Manufacturer="MyCompany"
          UpgradeCode="e5262915-9847-495b-8be3-6c9624e0b65e">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
    <Chain>
      <!-- TODO: Define the list of chained packages. --> 
      <PackageGroupRef Id="Netfx4Full"/>
      <MsiPackage Id="MyApplication" SouBudgetRightrceFile="$(var.ClientSetup.TargetPath)"/>
    </Chain> 
  </Bundle>  
  <Fragment> 
    <util:RegistrySearch Root="HKLM"
                         Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"
                         Value="Version"
                         Variable="Netfx45FullVersion" />
    <util:RegistrySearch Root="HKLM"
                         Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"
                         Value="Version"
                         Variable="Netfx40x64FullVersion"
                         Win64="yes" /> 
     <!--Check for .NET 4.0-->  
    <PackageGroup Id="Netfx4Full">
      <ExePackage Id="Netfx4Full"
                  DisplayName="Microsoft .NET Framework 4.5"
                  DownloadUrl="http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe"
                  Compressed="no"
                  Cache="yes"
                  PerMachine="yes"
                  Permanent="yes"
                  Protocol="netfx4"
                  Vital="yes"
                  SourceFile=".\dotNetFx40_Full_setup.exe"
                  InstallCommand="/passive /norestart"
                  DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />
    </PackageGroup> 
  </Fragment> 
</Wix>
Posted
Updated 19-Dec-13 21:55pm
v2

1 solution

By XML schema rules, it is specifically stated that the schema file does not have to be present on the Web. (However, I think this is highly desirable, to guarantee uniqueness of schema and hence the document format.) So, don't worry about it. The schema is known by the WiX code; this is all that matters.

As to the problem with the RegistrySearch element, please see the schema documentation: http://wixtoolset.org/documentation/manual/v3/xsd/util/[^],
http://wixtoolset.org/documentation/manual/v3/xsd/util/registrysearch.html[^].

See also: http://wixtoolset.org/documentation/manual/v3/xsd/wix/registrysearch.html[^].

I did not try this element; and you did not show the relevant piece of code, so I cannot check up if it is correct.

—SA
 
Share this answer
 
Comments
tasinsahin 20-Dec-13 3:40am    
Thank you Sergey!

Its a bootstrap project and get msi file from another set-up project.
The bundle is this;

[Code removed — SA]

I have the error.
The Fragment element contains an unexpected child element 'util:RegistrySearch'

By the way; I have the WixUtilExtension.dll referenced to the project.
tasinsahin 20-Dec-13 3:54am    
Thanks Sergey. Its a bootstrap project. The bundle is below. I m stuck with it.

[Code removed — SA]
tasinsahin 20-Dec-13 3:56am    
thank you Sergey!
I updated the question. Please see above.
Sergey Alexandrovich Kryukov 20-Dec-13 3:59am    
So far, it looks like you stuck with HTML here. :-)
Better avoid putting any code in comments, it won't be readable enough.
—SA
tasinsahin 20-Dec-13 4:01am    
Yes, I just experienced that :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900