c#,带有wix的MSBuild Bootstrapper,如何下载.net framework 3.5 SP1? [英] c#, MSBuild Bootstrapper with wix, how to download .net framework 3.5 SP1?
问题描述
我设法为包含.net Framework 3.5SP1的项目创建了带有以下代码的引导程序:
I managed to create bootstrapper for my project that includes .net framework 3.5SP1 with this code:
<ItemGroup>
<BootstrapperFile Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5.SP1</ProductName>
<Install>true</Install>
</BootstrapperFile>
</ItemGroup>
<Target Name="Bootstrapper">
<GenerateBootstrapper
ApplicationFile="SeppelSetup.msi"
ApplicationName="Seppel 1.0"
BootstrapperItems="@(BootstrapperFile)"
OutputPath=".\bin\Debug"
ComponentsLocation="Relative"
Culture="en"
Path="C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper"
/>
</Target>
问题在于输出目录的大小超过200Mb,这远远超出了我的承受能力(我想将安装程序在线下载).有没有一种方法可以让我从Microsoft的网站下载框架,而不是将所有文件都包含在安装包中?
The problem is that output directory has over 200Mb, wich is much more than I can afford (I want to put installer online for download). Is there a way that allow me to download framework from microsoft's site rather than include all files in installation package?
推荐答案
从Bootstrapper元素中删除您的ComponentsLocation ="Relative"属性 并添加以下内容
From the Bootstrapper element Remove your ComponentsLocation="Relative" attribute and add following
ComponentsLocation =主页"
ComponentsLocation="Homesite"
CopyComponents ="true"
CopyComponents="true"
这篇关于c#,带有wix的MSBuild Bootstrapper,如何下载.net framework 3.5 SP1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!