How to include full .NET prerequisite for Wix Burn installer

北战南征 提交于 2019-12-11 02:15:44

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/28633474/how-to-include-full-net-prerequisite-for-wix-burn-installer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!