WiX安装程序是否依赖于.NET Framework? [英] Does WiX installer depend on the .NET Framework?

查看:65
本文介绍了WiX安装程序是否依赖于.NET Framework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WiX安装程序,其中包含基于C#的自定义操作.

I have a WiX installer containing C# based custom actions.

此安装程序是否需要在主机上安装任何.NET Framework才能执行嵌入在安装程序中的这些C#自定义操作?

Does this installer need any .NET Framework installed on host machine in order to execute these C# custom action embed in installer?

推荐答案

是.与Java不同,.NET需要在使用前进行安装,而不是简单地进行复制并使用.您需要安装为其构建C#库或与其兼容的.NET Framework版本,例如Microsoft .NET Framework 2.0或4.0 Microsoft .NET Framework Full Profile.

Yes. Unlike Java, .NET needs to be installed prior to use, rather than simply copied and used. You need to install the version of the .NET framework the C# library was built for or one it is compatible with—e.g., Microsoft .NET Framework 2.0 or 4.0 Microsoft .NET Framework Full Profile.

从3.6版开始,WiX除了提供创作和构建Windows Installer程序包(及其他相关文件)的工具外,现在还提供了具有重启处理功能的bootstrapper/downloader/chainer/bundler和用于协调卸载的程序包管理器,称为烧伤.

Since version 3.6, WiX, in addition to providing tools to author and build Windows Installer packages (and other related files), now provides a bootstrapper/downloader/chainer/bundler with reboot handling capability and package manager for coordinated uninstalls, called Burn.

您可以使用这样的引导程序来安装.NET 4.0框架和安装程序.除了,还请参见此文章.href ="http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm" rel ="nofollow">文档.在Visual Studio中,"WiX Bootstrapper"模板创建一个Burn项目.

You can use such a bootstrapper to install both the .NET 4.0 framework and then your installer. See this article in addition to the documentation. In Visual Studio, the "WiX Bootstrapper" template creates a Burn project.

这篇关于WiX安装程序是否依赖于.NET Framework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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