本文介绍了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.

我还有一个第三方应用程序需要安装。

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.

推荐答案

我希望这对某人有帮助。我花了五个小时才弄清楚。也许是我的错,但是在文档或博客中什么都没找到。

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,带有Burn bootsrapper的WIX 3.6,创建一个安装程序可执行文件以检查.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. 为您的Setup可执行文件创建WIX Bootstrapper项目。

  3. 按照说明,以创建Boundle.wxs

  4. 添加对WixNetFxExtension.dll的引用,该引用可以在WIX​​程序目录中找到。 / li>
  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:

< PackageGroupRef Id = NetFx45Redist />

实际上,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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 22:52