WiX Bootstrap-元素包含未处理的扩展属性 [英] WiX Bootstrap - The element contains an unhandled extension attribute

查看:97
本文介绍了WiX Bootstrap-元素包含未处理的扩展属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用WiX Toolset 4.0开发WiX Bootstrap应用程序时遇到问题.

I am having trouble developing a WiX Bootstrap Application using WiX Toolset 4.0.

我现在的主要目标是在运行安装程序时检查并防止重新安装.NET 4.5 Framework.因此,我需要使用xmlns:util ="http://schemas.microsoft.com/wix/UtilExtension"命名空间中的RegistrySearch扩展属性,但出现以下错误.

My main objective right now is to check and prevent from reinstalling .NET 4.5 Framework when running the installer. So I need to use the RegistrySearch extension attribute from the xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" namespace but I am getting the following error.

Fragment元素包含未处理的扩展属性 "RegistrySearch".请确保该属性的扩展名位于 " http://schemas.microsoft.com/wix/UtilExtension 命名空间具有 已提供.

The Fragment element contains an unhandled extension attribute 'RegistrySearch'. Please ensure that the extension for attributes in the 'http://schemas.microsoft.com/wix/UtilExtension' namespace has been provided.

我已经添加了对WixUtilExtension.dll的引用,并且尝试从BalExtension名称空间添加PrereqPackage时也遇到此错误.

I already added the reference to WixUtilExtension.dll and I also get this error when trying to add PrereqPackage from the BalExtension namespace.

ExePackage元素包含未处理的扩展属性 'PrereqPackage'.请确保该属性的扩展名位于 " http://schemas.microsoft.com/wix/BalExtension 命名空间具有 已提供.

The ExePackage element contains an unhandled extension attribute 'PrereqPackage'. Please ensure that the extension for attributes in the 'http://schemas.microsoft.com/wix/BalExtension' namespace has been provided.

这是我的Bundle.wxs文件.

Here is my Bundle.wxs file.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Bundle Name="Camille" 
          Version="1.0.0.0" 
          Manufacturer="Dummy" 
          UpgradeCode="A48D5F63-0E35-4521-A659-36726E31D080" 
          Compressed="yes"
          DisableModify="button"
          >
    <!--TODO: Add IconSourceFile argument-->
     <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">       
      <Payload SourceFile="..\DummyInstaller.BootstrapperApplication\BootstrapperCore.config"/>
      <Payload SourceFile="..\DummyInstaller.BootstrapperApplication\bin\Release\DummyInstaller.BootstrapperApplication.dll"/>
      <Payload SourceFile="..\Libs\Dummy.UI.Tools.WPF.MVVMFramework.dll"/>
      <Payload SourceFile="..\Libs\Microsoft.Deployment.WindowsInstaller.dll"/>     
     </BootstrapperApplicationRef>
 

		<Chain>
      <PackageGroupRef Id='Netfx45'/>
      <MsiPackage SourceFile="..\MSI\DummyInstaller.msi" Id="DummyPackageId" Cache="yes" Visible="no" Vital="yes"/>
		</Chain>    
	</Bundle>
  
  <Fragment>
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" />
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" />
        
    <!-- .NET 4.5 only installed if Vista or higher AND it's not already installed-->
    <PackageGroup Id="Netfx45">
      <ExePackage Id="Netfx45" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" InstallCommand="/q"
                  bal:PrereqPackage="yes"
                  SourceFile="dotnetfx45_full_x86_x64.exe"
                  DownloadUrl="http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe"
                  DetectCondition="(Netfx4FullVersion=&quot;4.5.50709&quot;) AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&quot;4.5.50709&quot;))"
                  InstallCondition="(VersionNT >= v6.0 OR VersionNT64 >= v6.0) AND (NOT (Netfx4FullVersion=&quot;4.5.50709&quot; OR Netfx4x64FullVersion=&quot;4.5.50709&quot;))"/>
    </PackageGroup>  
  </Fragment>
</Wix>

推荐答案

我认为您的iis链接错误.请检查迁移页面.

I think you have the wrong iis link. Please check this Migration page.

修复:将http://schemas.microsoft.com/wix/BalExtension重命名为http://wixtoolset.org/schemas/v4/wxs/bal

修复:将http://schemas.microsoft.com/wix/UtilExtension重命名为http://wixtoolset.org/schemas/v4/wxs/util

这篇关于WiX Bootstrap-元素包含未处理的扩展属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆