WiX bundle for installing .NET

后端 未结 2 1685
灰色年华
灰色年华 2021-02-05 10:46

I\'m trying to create a bundle for installing .NET Framework 4.0 if it needs to be installed. I realize there are similar questions, but all of the answers are just snippets and

2条回答
  •  轮回少年
    2021-02-05 11:16

    The Wix/Bundle element is the root of a Bootstrapper project. It doesn't go in the same project as your Product.wxs. In Visual Studio, there is a template for new Wix Bootstrapper projects. You probably haven't created one.

    Then in your bundle's Chain, you'll want .NET and your application's MSI, as in the example. To use the NetFx40Web, you have to reference WixNetfxExtension. Wix projects that reference other Wix projects have predefined variables so you can use their properties such as TargetPath. The example assumes this Bootstrapper project references a Setup project called MyApplicationSetup.

    
        
        
    
    

提交回复
热议问题