使用WIX3.6来安装.NET Framework 3.5 SP1烧伤 [英] using WIX3.6 to install .NET Framework 3.5 SP1 with Burn

查看:323
本文介绍了使用WIX3.6来安装.NET Framework 3.5 SP1烧伤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用刻录和维克斯3.6,使安装程序为我的应用程序。安装程序必须能够从微软的网站安装.NET 3.5 SP1的。 我从与维克斯3.5创建的工作WiX工程工作。它的工作原理,如果.NET 3.5 SP1已经pviously安装在目标机器上$ P $。 第一步似乎是创建一个包,所以我增加了一个元素,我Product.wxs文件。当我这样做,我得到一个错误说,是不是在架构有效的,我必须有一个代替。这是否意味着,我要所有的产品定义转移到一个片段?目前还不清楚我是怎么做到这一点。 然后,事情变得更加复杂,因为WixNetfxExtension只提供PackageRef了.NET 4.0和4.5。我没有准备好我的应用程序切换到该版本的框架。那么,如何从一个网页源.NET 3.5 SP1在我的包?

I am trying to use Burn and WIX 3.6 to make an installer for my app. The installer must be capable of installing .NET 3.5 SP1 from Microsoft's web site. I am working from a working WIX project created with WIX 3.5. It works, if .NET 3.5 SP1 has been previously installed on the target machine. The first step appears to be to create a bundle, so I added a element to my Product.wxs file. When I do that I get an error saying that the is not valid in the schema, I must have a instead. Does that mean that I have to transfer all the product definitions into a fragment? It's unclear how I do that. Then the thing gets more complicated, since WixNetfxExtension only provides PackageRef for .NET 4.0 and 4.5. I am not ready to switch my app to that version of the framework. SO how do I get .NET 3.5 SP1 from a web source in my bundle?

是否有这样做的任何地方工作的例子?

Is there a working example of doing this anywhere?

推荐答案

目前还不清楚在你的问题,你正在尝试做的东西,所以我就从头开始。

It's unclear in your question where you are trying to do stuff so I'll just start from the beginning.

创建一个新的维克斯刻录引导程序的项目。这是你的依赖将被安装,然后您现有的维克斯3.5安装程序会从催生。

Create a new Wix burn bootstrapper project. This is where your dependencies will be installed and then your existing Wix 3.5 installer will be spawned from.

下载.NET 3.5 SP1完整的包,并注意用来下载它的直接的URL。

Download the .net 3.5 SP1 full package and take note of the direct url used to download it.

使用heat.exe(在WiX的3.6 bin目录)运行下面的命令,这将产生一个WXS文件与.NET安装程序的详细信息。

Using heat.exe (in the wix 3.6 bin dir) run the following command which will generate a WXS file with the details of the .net installer.

heat.exe payload [path_to_net_installer] -o [path_to_wxs]

this.will给你一个WXS如下:

this.will give you following in a wxs:

<RemotePayload CertificatePublicKey="F321408E7C51F8544B98E517D76A8334052E26E8"
               CertificateThumbprint="D57FAC60F1A8D34877AEB350E83F46F6EFC9E5F1" 
               Description=".NET Framework 3.5 Setup"
               Hash="3DCE66BAE0DD71284AC7A971BAED07030A186918" 
               ProductName=".NET Framework 3.5" 
               Size="242743296" 
               Version="3.5.30729.1" />

添加到这一点在你的引导程序的项目作为 ExePackage 元素和更新与先前保存您的下载URL的元素。这将自动下载.NET安装,也可以下一个地方它引导程序exe文件,它会检测到它。

Add this into in your bootstrapper project as a child of an ExePackage element and update the element with your download url saved earlier. This will automatically download the .net installer or you can place it next to the bootstrapper exe and it will detect it.

创建了的 =htt​​p://wix.sourceforge.net /manual-wix3/wix_xsd_bundle.htm">Bundle 包含.NET ExePackage和MsiPackage对您的安装。那么你最终会喜欢的东西(很多需要的属性,我会离开你填写!):

Create a chain in the Bundle that contains the .net ExePackage and a MsiPackage for your installer. You will then end up with something like (a lot of the required attributes I'll leave you to fill in!):

 <Bundle Name="$(var.SkuName)"
         Copyright="$(var.Copyright)"
         Manufacturer="$(var.Manufacturer)"
         Version="$(var.ProductVersion)"
         UpgradeCode="$(var.UpgradeCode)">
     <Chain>
         <ExePackage Id="dotNetFX3.5">
             <RemotePayload />
         </ExePackage>
         <MsiPackage Id="MyMsi" />
     </Chain>
  </Bundle>

建立和那么你就应该有一个大的exe与您的MSI包含或如果您选择不COM preSS它的执行你的MSI exe文件(这将需要在同一文件夹)。

Build and you should then have a big exe with your msi included or if you choose to not compress it an exe that executes your msi (it will need to be in the same folder).

这篇关于使用WIX3.6来安装.NET Framework 3.5 SP1烧伤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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