Wix Bootstrapper无法启动安装

时间:2018-11-27 10:07:11

标签: wix burn

我正在一个Wix Bootstrapper项目中,以链接ExePackage和MsiPackage。 ExePackage元素调用特定于供应商的exe,这将触发他们的msi基本安装了供应商平台的集合。安装平台后,将触发一个msi,它将在此平台中安装一些其他插件。尽管我可以选择链接msi而不是调用Vendor bootstrapper,但出于某些原因,我不想这样做,但是vendor bootstrap会进行一些清理工作,并且在某些功能无法使用时会内置一些智能功能。正确安装。 这是捆绑软件的配置。

<?xml version="1.0" encoding="UTF-8"?>

             

<Chain>
  <!--This ExePackage will trigger a set of msis to install a platform on the users machine-->
  <ExePackage Id="VendorProductPlatformStarter"
              PerMachine="yes"
              SourceFile="VendorFolder\VendorInstaller.exe"
              Compressed="no"
              Cache="no"
              InstallCommand="/s /Install"
              UninstallCommand="/s /Uninstall"
              Vital="yes">
  </ExePackage>                  

  <!--Rollback point-->
  <RollbackBoundary />

  <!--This MsiPackage will install some additional plugins after the platform has been installed. -->
  <MsiPackage Id="AdditionalPlugins" Visible="no" SourceFile="Plugins\Plugins.msi" Vital="yes" />
</Chain>
</Bundle>

当我双击安装程序时,安装失败。

    [1974:4198][2018-11-27T15:22:38]i000: Caching bundle from: 'C:\Users\User\AppData\Local\Temp\{291F15E2-219C-4F1E-AF77-084F50F5BBE6}\.be\FinalBootStrapper.exe' to: 'C:\ProgramData\Package Cache\{652212ba-4cc0-4506-9f7d-99aeab21954d}\FinalBootStrapper.exe'
[1974:4198][2018-11-27T15:22:38]i320: Registering bundle dependency provider: {652212ba-4cc0-4506-9f7d-99aeab21954d}, version: 1.0.0.0
[1974:4198][2018-11-27T15:22:38]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{652212ba-4cc0-4506-9f7d-99aeab21954d}, resume: Active, restart initiated: No, disable resume: No
[221C:2450][2018-11-27T15:22:38]i338: Acquiring package: VendorPlatformInstaller, payload: VendorPlatformInstaller, copy from: C:\Users\user\TestProjects\MyVendorBootStrapper\MyVendorBootStrapper\bin\Debug\VendorPlatformInstaller.exe
[221C:2450][2018-11-27T15:22:39]i000: Setting string variable 'WixBundleLastUsedSource' to value 'C:\Users\user\TestProjects\MyVendorBootStrapper\MyVendorBootStrapper\bin\Debug\'
[1974:2C9C][2018-11-27T15:22:39]i305: Verified acquired payload: VendorPlatformInstaller at path: C:\ProgramData\Package Cache\.unverified\VendorPlatformInstaller, moving to: C:\ProgramData\Package Cache\7BA3D05F0617DF775CB7F00C99C524926E17B0D4\VendorPlatformInstaller.exe.
[1974:2C9C][2018-11-27T15:22:40]i304: Verified existing payload: MyPlugins at path: C:\ProgramData\Package Cache\{FF8C3242-EE06-41B9-B49B-A1C29BF96493}v1.0.0\MyOcean2017-Modules.msi.
[1974:4198][2018-11-27T15:22:40]i301: Applying execute package: VendorPlatformInstaller, action: Install, path: C:\ProgramData\Package Cache\7BA3D05F0617DF775CB7F00C99C524926E17B0D4\VendorPlatformInstaller.exe, arguments: '"C:\ProgramData\Package Cache\7BA3D05F0617DF775CB7F00C99C524926E17B0D4\VendorPlatformInstaller.exe" /s /Install'
[1974:4198][2018-11-27T15:22:52]e000: Error 0x80070002: Process returned error: 0x80070002
[1974:4198][2018-11-27T15:22:52]e000: Error 0x80070002: Failed to execute EXE package.
[221C:1FB8][2018-11-27T15:22:52]e000: Error 0x80070002: Failed to configure per-machine EXE package.
[221C:1FB8][2018-11-27T15:22:52]i319: Applied execute package: VendorPlatformInstaller, result: 0x80070002, restart: None
[221C:1FB8][2018-11-27T15:22:52]e000: Error 0x80070002: Failed to execute EXE package.
[1974:4198][2018-11-27T15:22:52]i351: Removing cached package: VendorPlatformInstaller, from path: C:\ProgramData\Package Cache\7BA3D05F0617DF775CB7F00C99C524926E17B0D4\
[1974:4198][2018-11-27T15:22:52]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{652212ba-4cc0-4506-9f7d-99aeab21954d}, resume: None, restart: None, disable resume: No

从日志文件中,我可以看到它正在执行C:\ ProgramData \ Package Cache ..中的程序包,我在程序包中设置了Cache =“ no”,但是我看到程序包是从此处触发的

我还有一个问题是,我是否需要在捆绑软件中提及供应商的msi作为有效载荷?如果我这样做,那么我在构建CAB文件期间收到一条消息,提示计数超过了65k,因此我不得不求助于stackoverflow article中提到的另一种方法,其中我创建了一个exe文件,该文件反过来触发了供应商的启动程序,因此我可以克服了文件限制问题,但是在这里我也遇到了与日志文件中提到的问题相同的问题。

有什么想法/建议吗?

谢谢。

0 个答案:

没有答案