Wix自定义动作序列 [英] Wix Custom Action Sequence

查看:112
本文介绍了Wix自定义动作序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已尝试安装软件,并且该软件具有一些先决条件。我为他们制作了Bootstrapper wix,尝试单独运行而不是在Main Wix安装程序中运行似乎很好。当我尝试附加从Wix安装程序中的Bootstrapper获得的EXE时,我开始出现故障。
先决条件引导程序具有.Net和MS C ++,问题似乎出在我的Wix安装程序调用先决条件并且恰好在C ++安装时会中断。但是,如果我尝试单独安装前提条件EXE,则效果很好。
在两种情况下,我都尝试将其称为文件和二进制文件。这是我的称呼方式:

I have tried to make installation to my software, and this Software has some prerequisites. I made a Bootstrapper wix for them and trying to run them alone not in the Main Wix installer seems to work fine. The moment I tried to attach this EXE that I got from the Bootstrapper in my Wix Installer I start to get failures. The Prerequisites Bootstrapper has.Net and MS C++ and the problem seem to be when my Wix installer calls the Prerequisites and exactly at C++ installation it breaks. But if I tried to install the Prerequisites EXE alone it works fine. I tried to call it as a file and as a binary in both cases I fail. Here is how i called it :

<!--  <Binary Id="SQl_Insta.exe" SourceFile="Prerequisites\bin\Debug\Prerequisites.exe"/>
-->
<Property Id="prerequisites_insta" Value="command line to run"/>
<CustomAction Id="prerequisites_insta" FileKey="prerequist_ID" ExeCommand="-install"
  Impersonate="yes" Return="check" />

<!--
<CustomAction Id="prerequisites_insta" Directory="Setup"
  Execute="deferred" Impersonate="no" Return="ignore"
ExeCommand="[Setup]Prerequisites.exe -install" />-->

我想要的顺序是在将文件复制到程序文件之后安装它们

and the sequence that I want is to install them after copying files to Program files

<InstallExecuteSequence>

<Custom Action="prerequisites_insta"  Before="InstallFiles">Not Installed</Custom>

</InstallExecuteSequence>

错误:


[18F0:04C0] [2018-03-13T14:01:04] w348:应用程序请求重试
包:vcredist_x64.exe,遇到错误:0x80070652。正在重试...
[173C:176C] [2018-03-13T14:01:07] i301:应用执行包:
vcredist_x64.exe,操作:安装,路径:C:\ProgramData\ \软件包
缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe,
参数: C:\ProgramData\软件包
缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64b.exe / $ b / norestart'[173C:176C] [2018-03-13T14:01:11] e000:错误0x80070652:
进程返回错误:0x652 [173C:176C] [2018-03-13T14:01:11 ] e000:
错误0x80070652:无法执行EXE软件包。
[18F0:04C0] [2018-03-13T14:01:11] e000:错误0x80070652:无法
配置每台计算机EXE软件包。
[18F0:04C0] [2018-03-13T14:01:11] w348:应用程序请求重试
包:vcredist_x64.exe,遇到错误:0x80070652。正在重试...
[173C:176C] [2018-03-13T14:01:14] i301:应用执行包:
vcredist_x64.exe,操作:安装,路径:C:\ProgramData\ \软件包
缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe,
参数: C:\ProgramData\软件包
缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64b.exe / $ b / norestart'[173C:176C] [2018-03-13T14:01:17] e000:错误0x80070652:
进程返回错误:0x652 [173C:176C] [2018-03-13T14:01:17 ] e000:
错误0x80070652:无法执行EXE软件包。
[18F0:04C0] [2018-03-13T14:01:17] e000:错误0x80070652:无法
配置每台计算机EXE软件包。
[18F0:04C0] [2018-03-13T14:01:17] w348:应用程序请求重试
包:vcredist_x64.exe,遇到错误:0x80070652。正在重试...
[173C:176C] [2018-03-13T14:01:20] i301:应用执行包:
vcredist_x64.exe,操作:安装,路径:C:\ProgramData\ \软件包
缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe,
参数:' C:\ProgramData\Package

缓存\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64。 qb
/ norestart'[173C:176C] [2018-03-13T14:01:24] e000:错误0x80070652:
进程返回错误:0x652 [173C:176C] [2018-03-13T14: 01:24] e000:
错误0x80070652:无法执行EXE软件包。
[18F0:04C0] [2018-03-13T14:01:24] e000:错误0x80070652:无法
配置每台计算机EXE软件包。
[18F0:04C0] [2018-03-13T14:01:24] i319:应用执行包:
vcredist_x64.exe,结果:0x80070652,重启:无
[18F0:04C0] [2018-03-13T14:01:24] e000:错误0x80070652:无法
执行EXE软件包。 [173C:176C] [2018-03-13T14:01:24] i351:从路径:C:\ProgramData\Package
Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\,删除
个缓存包:vcredist_x64.exe \
[173C:176C] [2018-03-13T14:01:24] i351:删除缓存的软件包:
NDP452_KB2901907_x86_x64_AllOS_ENU.exe,来自路径:
C:\ProgramData\Package
Cache\89F86F9522DC7A8A965FACCE839ABB790A285A63\
[173C:176C] [2018-03-13T14:01:24] i351:删除缓存的包:
dotnetfx35.exe,从路径:C:C \ProgramData\Package
缓存\3DCE66BAE0DD71284AC7A971BAED07030A186918\

[173C:176C] [2018-03-13T14:01:24] i372:会话结束,注册密钥:
软件\Microsoft\Windows\CurrentVersion\卸载{a94dd5f5-3343-45c7-
ab0b-17c3ba9e8644},恢复:无,重新启动:无,禁用恢复:否
[173C:176C] [2018-03-13T14:01:24] i330:删除了包依赖项
提供者:{a94dd5f5-3343-45c7-ab0b-17c3ba9e8644}
[173C:176C] [2018-03-13T14:01 :24] i352 :从路径:
C:\ProgramData\Package Cache\ {a94dd5f5-3343-45c7-ab0b-17c3ba9e8644}删除缓存的包:
{a94dd5f5- 3​​343-45c7-ab0b-17c3ba9e8644} \
[173C:176C] [2018-03-13T14:01:24] i371:更新会话,注册
密钥:
软件\Microsoft\Windows\CurrentVersion\卸载{a94dd5f5-3343-45c7-
ab0b-17c3ba9e8644},恢复:无,重新启动已启动:否,禁用
恢复:否[18F0:04C0] [2018-03-13T14:01:24] i399:应用完整,
结果:0x80070652,重启:无,ba请求重启:否

[18F0:04C0][2018-03-13T14:01:04]w348: Application requested retry of package: vcredist_x64.exe, encountered error: 0x80070652. Retrying... [173C:176C][2018-03-13T14:01:07]i301: Applying execute package: vcredist_x64.exe, action: Install, path: C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe, arguments: '"C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe" /qb /norestart' [173C:176C][2018-03-13T14:01:11]e000: Error 0x80070652: Process returned error: 0x652 [173C:176C][2018-03-13T14:01:11]e000: Error 0x80070652: Failed to execute EXE package. [18F0:04C0][2018-03-13T14:01:11]e000: Error 0x80070652: Failed to configure per-machine EXE package. [18F0:04C0][2018-03-13T14:01:11]w348: Application requested retry of package: vcredist_x64.exe, encountered error: 0x80070652. Retrying... [173C:176C][2018-03-13T14:01:14]i301: Applying execute package: vcredist_x64.exe, action: Install, path: C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe, arguments: '"C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe" /qb /norestart' [173C:176C][2018-03-13T14:01:17]e000: Error 0x80070652: Process returned error: 0x652 [173C:176C][2018-03-13T14:01:17]e000: Error 0x80070652: Failed to execute EXE package. [18F0:04C0][2018-03-13T14:01:17]e000: Error 0x80070652: Failed to configure per-machine EXE package. [18F0:04C0][2018-03-13T14:01:17]w348: Application requested retry of package: vcredist_x64.exe, encountered error: 0x80070652. Retrying... [173C:176C][2018-03-13T14:01:20]i301: Applying execute package: vcredist_x64.exe, action: Install, path: C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe, arguments: '"C:\ProgramData\Package
Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\vcredist_x64.exe" /qb /norestart' [173C:176C][2018-03-13T14:01:24]e000: Error 0x80070652: Process returned error: 0x652 [173C:176C][2018-03-13T14:01:24]e000: Error 0x80070652: Failed to execute EXE package. [18F0:04C0][2018-03-13T14:01:24]e000: Error 0x80070652: Failed to configure per-machine EXE package. [18F0:04C0][2018-03-13T14:01:24]i319: Applied execute package: vcredist_x64.exe, result: 0x80070652, restart: None [18F0:04C0][2018-03-13T14:01:24]e000: Error 0x80070652: Failed to execute EXE package. [173C:176C][2018-03-13T14:01:24]i351: Removing cached package: vcredist_x64.exe, from path: C:\ProgramData\Package Cache\13674C43652B941DAFD2049989AFCE63CB7C517B\ [173C:176C][2018-03-13T14:01:24]i351: Removing cached package: NDP452_KB2901907_x86_x64_AllOS_ENU.exe, from path: C:\ProgramData\Package Cache\89F86F9522DC7A8A965FACCE839ABB790A285A63\ [173C:176C][2018-03-13T14:01:24]i351: Removing cached package: dotnetfx35.exe, from path: C:\ProgramData\Package Cache\3DCE66BAE0DD71284AC7A971BAED07030A186918\
[173C:176C][2018-03-13T14:01:24]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a94dd5f5-3343-45c7- ab0b-17c3ba9e8644}, resume: None, restart: None, disable resume: No [173C:176C][2018-03-13T14:01:24]i330: Removed bundle dependency provider: {a94dd5f5-3343-45c7-ab0b-17c3ba9e8644} [173C:176C][2018-03-13T14:01:24]i352: Removing cached bundle: {a94dd5f5- 3343-45c7-ab0b-17c3ba9e8644}, from path: C:\ProgramData\Package Cache\ {a94dd5f5-3343-45c7-ab0b-17c3ba9e8644}\ [173C:176C][2018-03-13T14:01:24]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a94dd5f5-3343-45c7- ab0b-17c3ba9e8644}, resume: None, restart initiated: No, disable resume: No [18F0:04C0][2018-03-13T14:01:24]i399: Apply complete, result: 0x80070652, restart: None, ba requested restart: No


推荐答案

该错误0x80070652是正在进行另一种安装。您不能运行递归MSI安装或同时进行MSI安装-您的MSI无法调用另一个基于MSI的安装,也不能同时运行两个基于MSI的安装。从(部分?)日志中很难分辨同时发生了基于MSI的安装。

That error 0x80070652 is "another installation is in progress". You cannot run recursive MSI install or simultaneous MSI installs - your MSI cannot call another MSI-based install, and neither can you run two MSI-based installs at the same time. It's hard to tell from the (partial?) log what MSI-based installed are happening at the same time.

这篇关于Wix自定义动作序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆