gpt4 book ai didi

wix - 先决条件 Bootstrap 应用程序无法安装 .NET 4.5

转载 作者:行者123 更新时间:2023-12-02 01:10:50 26 4
gpt4 key购买 nike

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

日志片段:

[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.

我的 .NET 包(这是包中的第一个包):

<PackageGroup Id="Netfx45Full">
<ExePackage Id="Netfx45Full"
Cache="no"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="..\Common\PreRequisites\MSIL\dotNetFx45_Full_x86_x64.exe"
InstallCondition="NOT (Netfx4FullVersion=&quot;4.5.50709&quot; OR Netfx4x64FullVersion=&quot;4.5.50709&quot;)"
DetectCondition="(Netfx4FullVersion=&quot;4.5.50709&quot;) AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&quot;4.5.50709&quot;))" />
</PackageGroup>

我的 bootstrappercore.config 有以下内容:

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

我一直在探查 %temp% 和其他各种位置,但我一直找不到 .NET 安装日志,所以我认为它还没有到那个地步。非常感谢任何有关 .NET 安装失败的原因或如何进一步排除故障的想法。谢谢

最佳答案

我遇到了类似的问题。安装程序开始时安装了 .NET 4.0,但后来崩溃了,即使我在 bundle 中引用了 .NET 4.5 包也是如此。我的解决方案是将 sku 属性添加到 BootstrapperCore.config 中的 supportedRuntime,如下所示:

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

关于wix - 先决条件 Bootstrap 应用程序无法安装 .NET 4.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17590981/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com