wix 安装vcredist

    <Directory Id="TARGETDIR" Name="SourceDir">
      <!-- <Directory Id="ProgramFilesFolder"> -->
      <Directory Id="ProgramFiles64Folder">
        <Directory Id="CompanyFolder" Name="deepvision">
          <Directory Id="INSTALLLOCATION" Name="wixv3sloution">
            <Merge Id="wixv3sloutionMM" SourceFile="$(var.wixv3sloutionMM.TargetPath)" DiskId="1" Language="2052"/>
            <Merge Id="VCRedist_2010" SourceFile="msms\Microsoft_VC100_CRT_x64.msm" DiskId="1" Language="0"/>
            <Merge Id="VCRedist_2019" SourceFile="msms\Microsoft_VC142_CRT_x64.msm" DiskId="1" Language="0"/>
          </Directory>
        </Directory>
      </Directory>
    </Directory>
    <Feature Id="wixv3sloution" Title="wixv3sloution" Description="Installs all the files needed for wixv3sloution" Level="1" AllowAdvertise="no" ConfigurableDirectory="INSTALLLOCATION">
      <MergeRef Id="wixv3sloutionMM"/>
      <!-- Uncomment the below line to pull in IIS Metadata.  Otherwise delete if not needed -->
      <!--<ComponentGroupRef Id="webSite" />-->
    </Feature>

    <Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no" Display="hidden" Level="1">
      <MergeRef Id="VCRedist_2010"/>
      <MergeRef Id="VCRedist_2019"/>
    </Feature>

验证

msiexec /a wixv3sloution.msi TARGETDIR=d:\hbb
posted @   马肯尼煤牙巴骨  阅读(26)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示