Man*_*nas 3 windows-installer wix bootstrapper burn
我编写了一个自定义托管引导程序应用程序(MBA)并获得了大部分功能,除了修复.检查捆绑日志提供:
[335C:3440][2013-04-29T13:51:41]w343: Prompt for source of package:
NetFx45Web, payload: NetFx45Web, path:
D:\dev\Setup\redist\dotNetFx45_Full_setup.exe
[335C:3440][2013-04-29T13:51:41]e054: Failed to resolve source for file:
D:\dev\Setup\redist\dotNetFx45_Full_setup.exe, error: 0x80070002.
[335C:3440][2013-04-29T13:51:41]e000: Error 0x80070002: Failed while
prompting for source (original path
'D:\dev\Setup\redist\dotNetFx45_Full_setup.exe').
[335C:3440][2013-04-29T13:51:41]e313: Failed to acquire payload: NetFx45Web
to working path:
C:\Users\admin\AppData\Local\Temp\{ab28ebc1-ce07-49bf-bb1f-bb83a4944aeb}\NetFx45Web,
error: 0x80070002.
[335C:164C][2013-04-29T13:51:41]e000: Error 0x80070002: Failed while
caching, aborting execution.
[335C:164C][2013-04-29T13:51:41]i399: Apply complete, result: 0x80070002,
restart: None, ba requested restart: No
[335C:164C][2013-04-29T13:51:43]i500: Shutting down, exit code: 0x80070002
[335C:164C][2013-04-29T13:51:43]i410: Variable: ArpSystemComponentCustom = 1
[335C:164C][2013-04-29T13:51:43]i410: Variable: NETFRAMEWORK45 = 378389
Run Code Online (Sandbox Code Playgroud)
有趣的是,即使主日志文件填充特定于包的日志文件变量名,Burn也不会实际生成该文件.我的猜测是它失败才能这样做.
我已将NetFx45Web软件包包含在我的WiX软件包中:
<PackageGroupRef Id="NetFx45Web"/>
Run Code Online (Sandbox Code Playgroud)
我的BootstrapperCore.config如下:
<?xml version="1.0" encoding="utf-8" ?>
<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" sku=".NETFramework,Version=v4.5"/>
</startup>
<wix.bootstrapper>
<host assemblyName="MyCustomMBA">
<supportedFramework version="v4\Full"/>
<supportedFramework version="v4\Client"/>
</host>
</wix.bootstrapper></configuration>
Run Code Online (Sandbox Code Playgroud)
我查看了相关的邮件列表主题:
我在那里讨论了ResolveSource的问题,涵盖了.
为什么这可能会失败?安装/卸载工作完全正常.
该错误0x80070002表示无法找到该文件.它还没有从日志文件中看到ResolveSource()回调返回Result.Download以指示Burn引擎尝试从Internet重新获取.NET Framework.如果引导程序应用程序(BA)返回Result.Download,您将看到有关从某个URL获取NETFX4.5有效内容的日志条目.