加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

wix 依赖.net client 4

发布时间:2020-12-13 22:26:53 所属栏目:百科 来源:网络整理
导读:修改.wixproj的文件 BootstrapperFile Include=".NETFramework,Version=v4.0,Profile=Client" ProductName.NET Framework 4.0 Client/ProductName/BootstrapperFile Target Name="AfterBuild" GenerateBootstrapper ApplicationFile="$(TargetFileName)" App

修改.wixproj的文件

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

<Target Name="AfterBuild">
    <GenerateBootstrapper ApplicationFile="$(TargetFileName)" 
       ApplicationName="Intuitive Query Excel Addin" 
       BootstrapperItems="@(BootstrapperFile)" 
       ComponentsLocation="Relative" 
       CopyComponents="True" 
       OutputPath="$(OutputPath)" 
       Path="$(BootstrapperPath)" />
</Target>

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

C:Program FilesMicrosoft SDKsWindowsv7.0ABootstrapperPackagesDotNetFX40Clientzh-Hanspackages.xml
把它改成这个样子,就能够去除中文包了
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" Name="DisplayName" Culture="Culture" LicenseAgreement="eula.rtf">
  <!-- Defines list of files to be copied on build -->
  <PackageFiles >
    <PackageFile Name="eula.rtf"/>
  </PackageFiles>

  <!-- Defines a localizable string table for error messages-->
  <Strings>
    <String Name="DisplayName">Microsoft .NET Framework 4 Client Profile (x86 和 x64)</String>
    <String Name="Culture">zh-Hans</String>
    <String Name="AdminRequired">必须具有管理员权限,才能安装 .NET Framework 4 Client。请与管理员联系。</String>
    <String Name="InvalidPlatformWinNT">安装 .NET Framework 4 Client 需要 Windows XP SP2、Windows 2003 SP1、Windows Vista 或更高版本。请与应用程序供应商联系。</String>
    <String Name="InvalidPlatformArchitecture">IA-64 操作系统上不支持此版本的 .NET Framework 4 Client。请与应用程序供应商联系。</String>
    <String Name="DotNetFX40ClientWebBootstrapper">http://go.microsoft.com/fwlink/?linkid=182804</String>
    <String Name="DotNetFX40ClientLanguagePackBootstrapper">http://go.microsoft.com/fwlink/?linkid=164196&clcid=0x804</String>
    <String Name="GeneralFailure">尝试安装 .NET Framework 4 Client 时出错。</String>
  </Strings>
</Package>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读