Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix 必备引导程序应用程序无法安装.NET 4.5_Wix_Burn - Fatal编程技术网

Wix 必备引导程序应用程序无法安装.NET 4.5

Wix 必备引导程序应用程序无法安装.NET 4.5,wix,burn,Wix,Burn,我的安装程序的先决条件是.NET 4.5,在Vista上运行安装程序(安装了.NET 4.0)时,它会按预期启动先决条件引导程序。 单击“安装”将对话框移动到一个进度页,并在那里停止。 它只是停留在0%一段时间,然后引导程序消失(退出) 日志片段: [0A30:0360][2013-07-11T10:41:23]i300: Apply begin [093C:06F4][2013-07-11T10:41:23]i360: Creating a system restore point. [093

我的安装程序的先决条件是.NET 4.5,在Vista上运行安装程序(安装了.NET 4.0)时,它会按预期启动先决条件引导程序。 单击“安装”将对话框移动到一个进度页,并在那里停止。 它只是停留在0%一段时间,然后引导程序消失(退出)

日志片段:

[0A30:0360][2013-07-11T10:41:23]i300: Apply begin
[093C:06F4][2013-07-11T10:41:23]i360: Creating a system restore point.
[093C:06F4][2013-07-11T10:41:28]i361: Created a system restore point.
[0A30:0360][2013-07-11T10:41:28]i399: Apply complete, result: 0x0, restart: None, ba requested restart:  No
[0A30:0360][2013-07-11T10:41:28]i500: Shutting down, exit code: 0x0
[0A30:0360][2013-07-11T10:41:28]i000: The prerequisites were not successfully installed, error: 0x0. The bootstrapper application will be not reloaded.
My.NET包(捆绑包中的第一个包):


我的bootstrappercore.config具有以下内容:

<wix.bootstrapper>
    <host assemblyName="Bootstrapper">
        <supportedFramework version="v4.5" />
    </host>
</wix.bootstrapper>

我一直在窥探%temp%和其他各种位置,但我找不到.NET安装日志,所以我认为它没有达到这一点。 对于任何有关.NET无法安装的原因或如何进一步排除故障的想法,我们将不胜感激。
谢谢

有一种更简单的方法可以在Burn中安装.NET,而不是创建自己的
ExePackage

由于要安装.NET 4.5,因此应使用
WixNetfxExtension
PackageGroup
NetFx45Redist

以下是完整的
PackageGroup
列表:


我也有类似的问题。安装程序一开始安装了.NET4.0,但后来崩溃了,即使我引用了捆绑包中的.NET4.5包。我的解决方案是在BootstrapperCore.config中将sku属性添加到supportedRuntime,如下所示:

    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>


我一开始就尝试过,但它没有将安装程序捆绑到我的bootstrapper可执行文件中,也许我错过了什么。不管怎样,我尝试了他们在帮助页面上描述的方式,遇到了同样的问题。你能给我们看看你的代码吗?你只需要做两件事:1)引用WixNetfxExtension和2)将其添加到你的链中:我添加了相同的内容。工作如期进行。但在包含它之后,我的应用程序在控制面板中的大小是巨大的。有没有减少应用程序大小的解决方案?搜索30分钟后,这肯定有效,谢谢:)我也有同样的问题,但我的问题是我引用了一个PackageGroup,而不是使用
WixMbaPrereqPackageId
    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>