【发布时间】:2020-07-22 12:33:05
【问题描述】:
希望你一切都好:)
所以,我正在做一些关于 Burn,Bootstrapper 工具的 wix 教程。
我尝试构建自己的 UI(按照本教程),但当我想运行它时,它崩溃了。
我已将其包含在我的 AsseblyInfo.cs 中
[assembly: BootstrapperApplication(
typeof(CustomBootstrapperApplication))]
这是我的 BootstrapperCore.config
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
<configuration>
<configSections>
<sectionGroup name="wix.bootstrapper" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore">
<section name="host" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, BootstrapperCore" />
</sectionGroup>
</configSections>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727" />
</startup>
<wix.bootstrapper>
<!-- Example only. Use only if the startup/supportedRuntime above cannot discern supported frameworks. -->
<!--
<supportedFramework version="v4\Client" />
<supportedFramework version="v3.5" />
<supportedFramework version="v3.0" />
-->
<!-- Example only. Replace the host/@assemblyName attribute with assembly that implements BootstrapperApplication. -->
<host assemblyName="CustomBA" />
</wix.bootstrapper>
</configuration>
我的库类名为 CustomBA。
一切编译正常,但是当尝试运行 *.exe 输出文件时,它不起作用。
查看日志后,我发现了这个......
[5364:3710][2020-07-22T13:53:50]i000: Loading managed bootstrapper application.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to create the managed bootstrapper application.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to create UX.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed to load UX.
[5364:3710][2020-07-22T13:53:50]e000: Error 0x8007000b: Failed while running
我已经挣扎了好几天。我可以看到这个问题是多年前出现的,但没有人为 netframework 4.8 和 wix 3.11 的新版本提供解决方案(我认为这是问题,因为我正在关注的教程使用 NetF 3.5 和 Wix 3.6 我认为@ 987654321@)。这就是我要发布新帖子的原因。
我希望有人可以帮助我解决这个问题。亲切的问候:)
【问题讨论】:
标签: c# user-interface wix bootstrapper