Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c#, MSBuild Bootstrapper with wix, how to download .net framework 3.5 SP1?

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>

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?

like image 235
Adrian Serafin Avatar asked Oct 11 '22 04:10

Adrian Serafin


1 Answers

From the Bootstrapper element Remove your ComponentsLocation="Relative" attribute and add following

ComponentsLocation="Homesite"

CopyComponents="true"

like image 99
Umesh Avatar answered Nov 15 '22 01:11

Umesh