找不到wix安装程序架构 [英] wix installer schema not found

查看:99
本文介绍了找不到wix安装程序架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

​​ http://stackoverflow.com/questions/20698895/wix-installer-schema-not -found [ ^ ]

你能帮我吗?我坚持了!

任何帮助&建议将适用。





budle.wsx在下面。



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 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>

推荐答案

(var.ClientSetup.TargetPath) / >
< / Chain >
< / Bundle >
< 片段 >
< util:RegistrySearch Root = HKLM

< span class =code-attribute> = SOFTWARE \ Microsoft \ NET Framework Setup\NDP \v4 \全

< span class =code-attribute> = 版本

< span class =code-attribute> 变量 = Netfx45FullVersion / >
< util:RegistrySearch Root = HKLM

= 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 AN D (NOT VersionNT64 OR Netfx4x64FullVersion)\" />
</PackageGroup>
</Fragment>
</Wix>
(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>


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
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


这篇关于找不到wix安装程序架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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