How to include full .NET prerequisite for Wix Burn

2019-07-21 08:12发布

I'm writing a managed Bootstrapper using Wix Burn and this Bootstrapper depends on .NET 4. If the .NET 4 is not installed on the machine, burn downloads it, installs it and then runs managed bootstrapper. But, I need to support also fully offline scenarios where .NET 4 can't be downloaded. How can I embed .NET 4 installer into my package so that it can be installed for managed bootstrapper to run?

Wix documentation here says "Target your bootstrapper application to the version of .NET built into the operating system. For Windows 7, this is .NET 3.5." but I can't afford that, I need to bring full .NET installer with me as a prerequisite.

标签: .net wix burn
1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-07-21 08:26

Create your own PackageGroup that contains an ExePackage element that points to the full .net installer. This is similar to how you would include other installation packages in your bootstrapper. Note that you will have to download the full .NET installer locally to your build machine. For a thorough code example, see this blog post by Heath Stewart.

查看更多
登录 后发表回答