2011-05-02 64 views
5

我設法創建我的項目引導程序,其中包括與此代碼的.NET Framework 3.5SP1:c#,帶有wix的MSBuild Bootstrapper,如何下載.net framework 3.5 SP1?

<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,至極比我能買得起更多的(我想將安裝程序在線下載)。有沒有一種方法可以讓我從微軟的網站下載框架,而不是在安裝包中包含所有文件?

回答

3

從引導程序元素中刪除您ComponentsLocation = 「相對」 屬性 並添加以下

ComponentsLocation = 「鳳凰私人」

CopyComponents = 「真」

+0

感謝的它的伎倆:) – 2011-05-03 15:04:25

+1

它應該是ComponentsLocation =「HomeSite」,注意S應該用大寫。 – deerchao 2011-08-16 15:07:43

2

你最好的選擇可能是使用Wix 3.6。這是遠遠不夠我最後一次嘗試它,但它完全支持你想要的東西,從互聯網下載可再分發的。如果你願意等待它穩定下去,那就去吧。

相關問題