面向初学者的 WiX 引导程序示例应用程序 [英] Sample application for WiX bootstrapper for beginners

查看:26
本文介绍了面向初学者的 WiX 引导程序示例应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对基于 WiX 的应用程序非常陌生,我需要创建一个 <一个 href="http://en.wikipedia.org/wiki/Windows_Installer" rel="nofollow noreferrer">MSI 文件,它必须在其中检查 .NET Framework 4.0 和 SQL Server 2008.如果没有安装它们,我必须先安装它们,然后再安装我的应用程序的 EXE 文件和另一个 VBScript 代理.必须像安装 WiX 3.7 setup 一样完成(如果我们双击 setup 文件,它将显示如下所示的 UI!

I'm very new to WiX based applications, and I need to create an MSI file where it has to check for .NET Framework 4.0 and SQL Server 2008. If they are not installed, I have to get them installed first and then have to install my application's EXE file and one more VBScript agent. It must be done like when you install WiX 3.7 setup (if we double click the setup file, it will show a UI as shown below!

我从哪里开始?是否有开发此类应用程序的分步指南?

Where do I start? Is there any step-by-step guide to develop this kind of application?

推荐答案

您将需要以下项目.它们可以从 Visual Studio 中的项目模板创建.他们每个人都可能有单独的教程,您可以通过网络搜索找到这些教程.

You'll need the following projects. They can be created from project templates in Visual Studio. Each of them would probably have separate tutorials that you might find with a Web search.

  1. 用于构建 .msi 的 WiX 安装项目.此类项目的源文件声明了 WiX/Product.它可能具有检查 .Net Framework4.0 和 SQL Server 2008 的条件.如果检查失败,.msi 的安装将失败,这是在 .msi 中可以完成的所有操作.该项目将包含您的应用程序 .exe 作为组件.

  1. A WiX Setup project to build an .msi. The source files for such a project declare a WiX/Product. It could have conditions that check for .Net Framework4.0 and SQL Server 2008. If a check fails, installation of the .msi will fail, which is all that can be done in an .msi. The project would include your application .exe as a Component.

用于构建 .exe 的 WiX Bootstrapper 项目.此类项目的源文件声明了 WiX/Bundle.捆绑包中包含安装程序链,其中包括 .Net Framework4.0、SQL Server 2008、您的 .msi 和您的 VBScript 代理.

A WiX Bootstrapper project to build an .exe. The source files for such a project declare a WiX/Bundle. In the bundle is a Chain of installers, which would include .Net Framework4.0, SQL Server 2008, your .msi, and your VBScript Agent.

一个 WPF 库项目,用于为引导程序项目提供带有自定义 UI 的引导程序应用程序实现.

A WPF Library project to provide a BootstrapperApplication implementation with a custom UI for the bootstrapper project.

最好的办法是查阅文档、WiX 源代码和各种教程.请记住,教程可能已经过时 - 在大多数情况下,每个版本的 WiX 都变得更简单了.

Your best bet is to consult the documentation, the WiX source code and various tutorials. Keep in the mind that tutorials might be out-of-date--in most cases WiX has gotten simpler with each version.

这篇关于面向初学者的 WiX 引导程序示例应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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