首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >.NET 4.5的WiX引导程序

.NET 4.5的WiX引导程序
EN

Stack Overflow用户
提问于 2013-01-08 04:52:17
回答 2查看 3.7K关注 0票数 3

我是WiX的新手,并且已经构建了一个独立的安装程序。我想要检测系统上是否安装了.NET 4.5,并提示用户安装它。我的开发环境是使用WiX 3.7工具集的Visual Studio 2010

从我看过的一些教程中,我应该使用WiX 3.6 Burn或使用Visual Studio2010中的WiX引导程序项目模板。

由于某些原因,当我安装Wix3.7的时候,我没有bootstrapper模板(我不确定我是否遗漏了一个要下载的扩展)。

使用引导程序模板比使用Burn更好吗?有什么不同?

EN

回答 2

Stack Overflow用户

发布于 2013-01-18 18:40:20

您需要创建一个名为"Bootstrapper Project“的新项目(此模板必须位于您的Visual Studio 2010安装中,与Windows Installer XML相关)。这里有一些非常好的博客文章和手册:

  • by Heath Stewart
  • 作者: Neil Sleightholm
票数 2
EN

Stack Overflow用户

发布于 2018-07-10 23:03:09

Wix burn是Wix Bootstrapper它们是一回事。Burn只是Wix Bootstrapper的名字,但他们确实倾向于在称之为"wix burn“和"wix bootstrapper”之间切换。但正如我所说的,它们是一回事。

这是我的wix引导程序,它检查.net的版本,然后在安装我的.msi之前下载并安装它,您需要添加一个对WixNetFxExtension.dll的引用

代码语言:javascript
复制
<?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>

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14203827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档