如何为 Wix Burn 安装程序包含完整的 .NET 先决条件 [英] How to include full .NET prerequisite for Wix Burn installer

查看:29
本文介绍了如何为 Wix Burn 安装程序包含完整的 .NET 先决条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Wix Burn 编写一个托管 Bootstrapper,这个 Bootstrapper 依赖于 .NET 4.如果机器上没有安装 .NET 4,burn 会下载它,安装它,然后运行托管引导程序.但是,我还需要支持无法下载 .NET 4 的完全离线场景.如何将 .NET 4 安装程序嵌入到我的包中,以便可以安装它以运行托管引导程序?

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 文档 此处针对您的引导程序应用程序到操作系统内置的 .NET 版本.对于 Windows 7,这是 .NET 3.5."但我负担不起,我需要带上完整的 .NET 安装程序作为先决条件.

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.

推荐答案

创建您自己的 PackageGroup,其中包含指向完整 .net 安装程序的 ExePackage 元素.这类似于在引导程序中包含其他安装包的方式.请注意,您必须在本地将完整的 .NET 安装程序下载到您的构建机器上.有关完整的代码示例,请参阅 这篇博文由希思·斯图尔特撰写.

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.

这篇关于如何为 Wix Burn 安装程序包含完整的 .NET 先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆