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="PrerequisitesinDebugPrerequisites.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>
the error :
[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:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_x64.exe,
arguments: '"C:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_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:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_x64.exe,
arguments: '"C:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_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:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_x64.exe,
arguments: '"C:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517Bvcredist_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:ProgramDataPackage
Cache13674C43652B941DAFD2049989AFCE63CB7C517B
[173C:176C][2018-03-13T14:01:24]i351: Removing cached package:
NDP452_KB2901907_x86_x64_AllOS_ENU.exe, from path:
C:ProgramDataPackage
Cache89F86F9522DC7A8A965FACCE839ABB790A285A63
[173C:176C][2018-03-13T14:01:24]i351: Removing cached package:
dotnetfx35.exe, from path: C:ProgramDataPackage
Cache3DCE66BAE0DD71284AC7A971BAED07030A186918
[173C:176C][2018-03-13T14:01:24]i372: Session end, registration key:
SOFTWAREMicrosoftWindowsCurrentVersionUninstall{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:ProgramDataPackage Cache {a94dd5f5-3343-45c7-ab0b-17c3ba9e8644}
[173C:176C][2018-03-13T14:01:24]i371: Updating session, registration
key:
SOFTWAREMicrosoftWindowsCurrentVersionUninstall{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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…