问题描述
我试图创建一个捆绑安装.NET Framework 4.0中,如果需要安装。我知道有类似的问题,但所有的答案都只是片段,并没有介绍他们去的是什么文件,以及如何在正在导入到.wxs文件。
这是我在一个Bundle.wxs文件。我得到的多个入口部分的编译器警告。
错误2多入口部分{CF06625F-7B6B-4B6E-A24E-FDDCA7CFFFF4}和{0D1EE60A-FC4F-4083-8B1E-311E75A67B4C}中。只有一个入口段可能是present在一个单一的目标。
< XML版本=1.0编码=UTF-8&GT?;
<维克斯的xmlns =http://schemas.microsoft.com/wix/2006/wi>
<捆绑升级code ={C6FF478E-C3DA-4D78-929D-24C3F3307356}版本=4.0>
<链>
< PackageGrou preF n =NetFx40Redist/>
< /链>
< /包>
< /维克斯>
大多数维克斯页面上的链接中被破坏,也没有提及属性上的标签捆绑使用,而且似乎互换包装/产品什么。我找不到提上有关设置GUID的束的维克斯页面。那是新的东西,以WiX的3.7?
http://wix.sourceforge.net/manual-wix3/install_dotnet.htm
- 如何使用pdefined了$ P $ .NET 4.0 PackageGrou preF / PayloadGrou preF
- 是否必须在Bundle.wxs?它从哪里获得进口到我的主要Product.wxs?
这是错误指示您的项目建设与包含多个这些元素的文件:产品
,模块
,补丁
, PatchCreation
,捆绑
。对你来说,这听起来像你加入一个捆绑
元素,以一个项目,已经有一个产品
元素的文件。那未在维克斯工具集今天支撑。你需要把捆绑
元素中的一个单独的项目。
因此,创建一个引导程序和MSI的时候,你就会有两个.wixproj文件。第一.wixproj将包含产品
信息。第二.wixproj将包含捆绑
信息,并有一个项目,参照第一.wixproj使生成顺序是正确的。
I'm trying to create a bundle for installing .NET Framework 4.0 if it needs to be installed. I realize there are similar questions, but all of the answers are just snippets and don't describe what file they go in, and how they're imported in to the .wxs file.
This is what I have in a Bundle.wxs file. I get compiler warnings about multiple entry sections.
Error 2 Multiple entry sections '{CF06625F-7B6B-4B6E-A24E-FDDCA7CFFFF4}' and '{0D1EE60A-FC4F-4083-8B1E-311E75A67B4C}' found. Only one entry section may be present in a single target.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle UpgradeCode="{C6FF478E-C3DA-4D78-929D-24C3F3307356}" Version="4.0">
<Chain>
<PackageGroupRef Id="NetFx40Redist"/>
</Chain>
</Bundle>
</Wix>
Most of the links on the WiX page are broken, and do not mention anything about attributes to use on the Bundle tag, and seem to interchange the Package/Product. I could not find mention on the Wix pages about setting a GUID for Bundles. Is that something new to Wix 3.7?
http://wix.sourceforge.net/manual-wix3/install_dotnet.htm
- How do I use the predefined .NET 4.0 PackageGroupRef/PayloadGroupRef
- Does it have to be in Bundle.wxs? Where does it get imported in to my main Product.wxs?
That error indicates that your project is building with files that contain more than one of these elements: Product
, Module
, Patch
, PatchCreation
, Bundle
. In your case, it sounds like you added a file with a Bundle
element to a project that already had a Product
element. That isn't supported in the WiX toolset today. You need to put the Bundle
element in a separate project.
Thus, when creating a bootstrapper and MSI, you'll have two .wixproj files. The first .wixproj will contain your Product
information. The second .wixproj will contain your Bundle
information and have a project reference to the first .wixproj so that the build order is correct.
这篇关于维克斯捆绑安装.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!