我是WiX的新手,并且已经构建了一个独立的安装程序。我想要检测系统上是否安装了.NET 4.5,并提示用户安装它。我的开发环境是使用WiX 3.7工具集的Visual Studio 2010。
从我看过的一些教程中,我应该使用WiX 3.6 Burn或使用Visual Studio2010中的WiX引导程序项目模板。
由于某些原因,当我安装Wix3.7的时候,我没有bootstrapper模板(我不确定我是否遗漏了一个要下载的扩展)。
使用引导程序模板比使用Burn更好吗?有什么不同?
发布于 2013-01-18 18:40:20
您需要创建一个名为"Bootstrapper Project“的新项目(此模板必须位于您的Visual Studio 2010安装中,与Windows Installer XML相关)。这里有一些非常好的博客文章和手册:
发布于 2018-07-10 23:03:09
Wix burn是Wix Bootstrapper它们是一回事。Burn只是Wix Bootstrapper的名字,但他们确实倾向于在称之为"wix burn“和"wix bootstrapper”之间切换。但正如我所说的,它们是一回事。
这是我的wix引导程序,它检查.net的版本,然后在安装我的.msi之前下载并安装它,您需要添加一个对WixNetFxExtension.dll的引用
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="MyProgramInstaller" Version="1.0.0.0" Manufacturer="myCompany" UpgradeCode="yourcodehere">
<!-- here's the license statement, would suggest you update this to something more useful. -->
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<!-- here's the .net download installer you can change this using the following chart -->
<!-- http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
<PackageGroupRef Id="NetFx451Web"/>
<MsiPackage Id="myProgram" SourceFile="$(var.SolutionDir)SetupProject1/bin/Release/myProgramInstaller.msi"/>
</Chain>
</Bundle>
</Wix>
https://stackoverflow.com/questions/14203827
复制相似问题