VS2012 和 Wix 3.6 - 使用我的应用程序安装 .Net 4.5 [英] VS2012 and Wix 3.6 - Installing .Net 4.5 with my application

查看:21
本文介绍了VS2012 和 Wix 3.6 - 使用我的应用程序安装 .Net 4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对安装程序的世界很陌生.

I am very new to the installer world.

我已经成功地为我的应用程序制作了一个 .msi,它正在使用快捷方式构建并且也可以正确卸载.

I have successfully made an .msi for my application and it is building with short-cuts and also uninstalls correctly.

我的下一个目标是使用安装程序打包 .Net 4.5 并在安装我的应用程序之前安装它.

My next goal is to package .Net 4.5 with the installer and have it be installed prior to the installation of my application.

我还有一个需要安装的第三方应用程序.它被打包为 msi.

I also have a third party application that needs to be installed. It is packaged as an msi.

据我所知,我需要开发一个 Bootstraper 解决方案来按顺序安装这些应用程序.

From what I can gather I need to develop a Bootstraper solution to have these applications install in sequence.

谁能提供有关如何以这种方式实现安装程序的指南?我的搜索提出了一堆部分实现,假设在 Visual Studio 中设计了一个 Wix Bootstrapper 项目.

Can anyone provide a guide as to how to implement an installer in such a way? My searches have come up with a bunch of partial implementations with an assumption of the design of a Wix Bootstrapper Project in Visual Studio.

推荐答案

我希望这对某人有所帮助.我花了5个小时才弄明白.也许,我的错,但在文档或博客中没有找到任何相关信息.

I hope this helps someone. It took me 5 hours to figure it out. Maybe, my bad, but did not find anything about it in the docs or blogs.

所以我的方案是:VS 2012、WIX 3.6 和 Burn bootsrapper,创建一个安装程序可执行文件以检查 .NET Framework 4.5 并通过下载安装它(如果尚未安装).听起来很简单.确实如此.其实非常.

So my scenario is: VS 2012, WIX 3.6 with Burn bootsrapper, create a Setup executable in order to check .NET Framework 4.5 and install it by downloading if not installed already. Sounds simple. And it is. Actually very.

  1. 创建您的 MSI 安装程序项目(WIX 安装项目),为您的应用程序生成安装程序.
  2. 为您的安装程序可执行文件创建一个 WIX 引导程序项目.
  3. 按照此处的说明创建您的 Boundle.wxs
  4. 添加对可在 WIX 程序目录中找到的 WixNetFxExtension.dll 的引用.
  5. 在您的链中加入以下行:
  1. Create your MSI installer project (WIX Setup Project), to produce an installer for your application.
  2. Create a WIX Bootstrapper Project for your Setup executable.
  3. Follow the instructions here, to create your Boundle.wxs
  4. Add a reference to the WixNetFxExtension.dll which can be found in the WIX program directory.
  5. Include the following line in your Chain:

实际上,WixNetFx 扩展包含 .NET Framework 4.5 的有效安装包定义.

Actually the WixNetFx extension contains a working install package definition for the .NET Framework 4.5.

这篇关于VS2012 和 Wix 3.6 - 使用我的应用程序安装 .Net 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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