wix 依赖.net client 4

前端之家收集整理的这篇文章主要介绍了wix 依赖.net client 4前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

修改.wixproj的文件

  1. <BootstrapperFile Include=".NETFramework,Version=v4.0,Profile=Client">
  2. <ProductName>.NET Framework 4.0 Client</ProductName>
  3. </BootstrapperFile>

  1. <Target Name="AfterBuild">
  2. <GenerateBootstrapper ApplicationFile="$(TargetFileName)"
  3. ApplicationName="Intuitive Query Excel Addin"
  4. BootstrapperItems="@(BootstrapperFile)"
  5. ComponentsLocation="Relative"
  6. CopyComponents="True"
  7. OutputPath="$(OutputPath)"
  8. Path="$(BootstrapperPath)" />
  9. </Target>

这里有个问题,它会自动安装简体中文包dotNetFx40LP_Client_x86_x64zh-Hans.exe,如果不想要这个包,我们可以做一点修改,找到这个路径下的这个文件

  1. C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\zh-Hans\packages.xml
把它改成这个样子,就能够去除中文包了
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" Name="DisplayName" Culture="Culture" LicenseAgreement="eula.rtf">
  3. <!-- Defines list of files to be copied on build -->
  4. <PackageFiles >
  5. <PackageFile Name="eula.rtf"/>
  6. </PackageFiles>
  7.  
  8. <!-- Defines a localizable string table for error messages-->
  9. <Strings>
  10. <String Name="DisplayName">Microsoft .NET Framework 4 Client Profile (x86 和 x64)</String>
  11. <String Name="Culture">zh-Hans</String>
  12. <String Name="Adminrequired">必须具有管理员权限,才能安装 .NET Framework 4 Client。请与管理员联系。</String>
  13. <String Name="InvalidPlatformWinNT">安装 .NET Framework 4 Client 需要 Windows XP SP2、Windows 2003 SP1、Windows Vista 或更高版本。请与应用程序供应商联系。</String>
  14. <String Name="InvalidPlatformArchitecture">IA-64 操作系统上不支持此版本的 .NET Framework 4 Client。请与应用程序供应商联系。</String>
  15. <String Name="DotNetFX40ClientWebBootstrapper">http://go.microsoft.com/fwlink/?linkid=182804</String>
  16. <String Name="DotNetFX40ClientLanguagePackBootstrapper">http://go.microsoft.com/fwlink/?linkid=164196&clcid=0x804</String>
  17. <String Name="GeneralFailure">尝试安装 .NET Framework 4 Client 时出错。</String>
  18. </Strings>
  19. </Package>

猜你在找的设计模式相关文章