嗨,谁能告诉我如何vcredist_x86.exe
在我的 wix 安装程序的引导程序中引用该文件。
我试过这个:
<ItemGroup>
<BootstrapperFile Include="vcredist_86">
<ProductName>Microsoft Visual C++ Redistributables</ProductName>
</BootstrapperFile>
</ItemGroup>
<Target Name="AfterBuild">
<GenerateBootstrapper ApplicationFile="$(TargetFileName)" ApplicationName="Server Setup" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Relative" CopyComponents="True" OutputPath="$(OutputPath)" Path="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\" />
</Target>
但我的错误是:
warning MSB3155: Item 'vcredist_86' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\'.
我认为这条线是问题所在,但我不知道要输入的正确名称,也无法在任何地方找到它:
<BootstrapperFile Include="vcredist_86">