<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
标签:wixv3sloution,--,TARGETDIR,vcredist,安装,wix
From: https://www.cnblogs.com/nocanstillbb/p/17598956.html