Multiple prerequisites return failure, when 1st prerequisite is already installed and 2nd prerequisite is installed successfully. #4608

Closed
wixbot opened this Issue Nov 24, 2014 · 6 comments

Comments

Projects
None yet
2 participants
Collaborator

wixbot commented Nov 24, 2014

We have a bundle that installs .net 4.0 and .net 4.0.2 (KB2544514) as prerequisite, using the property bal:PrereqSupportPackage="yes" and with a DetectCondition based on two diferent util:RegistrySearch for each ExePackage. Then it installs a MSI with our software while using a Managed Bootstrapper App implemented in .net.

  • When .net 4.0 and .net 4.0.2 exepackage DetectConditions are both evaluated to false it launches the prerequisites installation and after that the custom MBA correctly.
  • When .net 4.0 and .net 4.0.2 exepackage DetectConditions are both evaluated to true, it launches the custom MBA directly.
  • When .net 4.0 DetectCondition is true but .net 4.0.2 DetectCondition is false it launches the prerequisites installation and never launches the custom MBA. Checking the installation log I can see that this is happening because the prerequisite installation finishes with failure (even if the .net 4.0.2 package was successfully installed, success code 0x0)

I am including the installation log:

[081C:06C0][2014-11-21T13:43:34]i001: Burn v3.9.1006.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\vagrant\APP\ZZZZZ_APP - 1.0.0.0.exe, cmdline: '-burn.unelevated BurnPipe.{615C90E2-1D54-4EB0-8535-3223B4096C4C} {E1E5EC46-E184-4929-A43F-38C3A6731861} 2080 '
[081C:06C0][2014-11-21T13:43:34]i000: Initializing string variable 'InstallDir' to value 'C:\ZZZZZ\APP'
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\vagrant\AppData\Local\Temp\ZZZZZ_APP_20141121134335.log'
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\vagrant\APP\ZZZZZ_APP - 1.0.0.0.exe'
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\vagrant\APP\'
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'WixBundleName' to value 'ZZZZZ APP'
[081C:06C0][2014-11-21T13:43:35]i000: Loading prerequisite bootstrapper application because managed host could not be loaded, error: 0x80131700.
[081C:0330][2014-11-21T13:43:35]i000: Setting version variable 'WixBundleFileVersion' to value '1.0.0.0'
[081C:06C0][2014-11-21T13:43:35]i100: Detect begin, 3 packages
[081C:06C0][2014-11-21T13:43:35]i000: Registry key not found. Key = 'Software\ZZZZZ\APP'
[081C:06C0][2014-11-21T13:43:35]i052: Condition 'PreviousInstallDir' evaluates to false.
[081C:06C0][2014-11-21T13:43:35]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.0.2'
[081C:06C0][2014-11-21T13:43:35]i000: Setting numeric variable 'Netfx402x64' to value 0
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'Netfx4x64FullVersion' to value '4.0.30319'
[081C:06C0][2014-11-21T13:43:35]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.0.2'
[081C:06C0][2014-11-21T13:43:35]i000: Setting numeric variable 'Netfx402' to value 0
[081C:06C0][2014-11-21T13:43:35]i000: Setting string variable 'Netfx4FullVersion' to value '4.0.30319'
[081C:06C0][2014-11-21T13:43:35]i052: Condition 'Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)' evaluates to true.
[081C:06C0][2014-11-21T13:43:35]i052: Condition 'Netfx402 AND (NOT VersionNT64 OR Netfx402x64)' evaluates to false.
[081C:06C0][2014-11-21T13:43:35]i101: Detected package: Netfx4FullWithReboot, state: Present, cached: None
[081C:06C0][2014-11-21T13:43:35]i101: Detected package: Netfx402, state: Absent, cached: None
[081C:06C0][2014-11-21T13:43:35]i101: Detected package: ZZZZZServiceInstallerMsiPackage, state: Absent, cached: None
[081C:06C0][2014-11-21T13:43:35]i199: Detect complete, result: 0x0
[081C:06C0][2014-11-21T13:43:36]i200: Plan begin, 3 packages, action: Install
[081C:06C0][2014-11-21T13:43:36]w321: Skipping dependency registration on package with no dependency providers: Netfx4FullWithReboot
[081C:06C0][2014-11-21T13:43:36]w321: Skipping dependency registration on package with no dependency providers: Netfx402
[081C:06C0][2014-11-21T13:43:36]i000: Setting string variable 'WixBundleLog_Netfx402' to value 'C:\Users\vagrant\AppData\Local\Temp\ZZZZZ_APP_20141121134335_0_Netfx402.log'
[081C:06C0][2014-11-21T13:43:36]i201: Planned package: Netfx4FullWithReboot, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[081C:06C0][2014-11-21T13:43:36]i201: Planned package: Netfx402, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: Yes, dependency: None
[081C:06C0][2014-11-21T13:43:36]i201: Planned package: ZZZZZServiceInstallerMsiPackage, state: Absent, default requested: Present, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[081C:06C0][2014-11-21T13:43:36]i299: Plan complete, result: 0x0
[081C:06C0][2014-11-21T13:43:36]i300: Apply begin
[0820:05C4][2014-11-21T13:43:36]i360: Creating a system restore point.
[0820:05C4][2014-11-21T13:43:36]i362: System restore disabled, system restore point not created.
[0820:05C4][2014-11-21T13:43:36]i000: Caching bundle from: 'C:\Users\vagrant\AppData\Local\Temp\{4b7da080-2337-4b11-b789-929ef46f755e}\.be\ZZZZZ_APP.exe' to: 'C:\ProgramData\Package Cache\{4b7da080-2337-4b11-b789-929ef46f755e}\ZZZZZ_APP.exe'
[0820:05C4][2014-11-21T13:43:36]i320: Registering bundle dependency provider: {4b7da080-2337-4b11-b789-929ef46f755e}, version: 1.0.0.0
[0820:0BC8][2014-11-21T13:43:39]i305: Verified acquired payload: Netfx402 at path: C:\ProgramData\Package Cache\.unverified\Netfx402, moving to: C:\ProgramData\Package Cache\DEEE0479FA9313AA67ABDA1EF1D9AB25646CC401\NDP40-KB2544514-x86-x64.exe.
[0820:05C4][2014-11-21T13:43:39]i301: Applying execute package: Netfx402, action: Install, path: C:\ProgramData\Package Cache\DEEE0479FA9313AA67ABDA1EF1D9AB25646CC401\NDP40-KB2544514-x86-x64.exe, arguments: '"C:\ProgramData\Package Cache\DEEE0479FA9313AA67ABDA1EF1D9AB25646CC401\NDP40-KB2544514-x86-x64.exe" /q /norestart /ChainingPackage "ZZZZZ APP"'
[081C:06C0][2014-11-21T13:44:52]i319: Applied execute package: Netfx402, result: 0x0, restart: None
[0820:05C4][2014-11-21T13:44:52]i351: Removing cached package: Netfx402, from path: C:\ProgramData\Package Cache\DEEE0479FA9313AA67ABDA1EF1D9AB25646CC401\
[081C:06C0][2014-11-21T13:44:52]i399: Apply complete, result: 0x0, restart: None, ba requested restart:  No
[081C:06C0][2014-11-21T13:44:52]i500: Shutting down, exit code: 0x0
[081C:06C0][2014-11-21T13:44:52]i000: The prerequisites were not successfully installed, error: 0x0. The bootstrapper application will be not reloaded.
[081C:06C0][2014-11-21T13:44:52]i410: Variable: InstallDir = C:\ZZZZZ\APP
[081C:06C0][2014-11-21T13:44:52]i410: Variable: Netfx402 = 0
[081C:06C0][2014-11-21T13:44:52]i410: Variable: Netfx402x64 = 0
[081C:06C0][2014-11-21T13:44:52]i410: Variable: Netfx4FullVersion = 4.0.30319
[081C:06C0][2014-11-21T13:44:52]i410: Variable: Netfx4x64FullVersion = 4.0.30319
[081C:06C0][2014-11-21T13:44:52]i410: Variable: VersionNT64 = 6.1.0.0
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleAction = 4
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleElevated = 1
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleFileVersion = 1.0.0.0
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleInstalled = 0
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleLog = C:\Users\vagrant\AppData\Local\Temp\ZZZZZ_APP_20141121134335.log
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleLog_Netfx402 = C:\Users\vagrant\AppData\Local\Temp\ZZZZZ_APP_20141121134335_0_Netfx402.log
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleManufacturer = ZZZZZ Systems S.L.
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleName = ZZZZZ APP
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleOriginalSource = C:\vagrant\APP\ZZZZZ_APP - 1.0.0.0.exe
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleOriginalSourceFolder = C:\vagrant\APP\
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleProviderKey = {4b7da080-2337-4b11-b789-929ef46f755e}
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleTag = 
[081C:06C0][2014-11-21T13:44:52]i410: Variable: WixBundleVersion = 1.0.0.0
[081C:06C0][2014-11-21T13:44:52]i007: Exit code: 0x0, restarting: No

Originally opened by inigo

Collaborator

wixbot commented Nov 25, 2014

Thanks for the detailed bug report. There was already another bug in v3.9 that was causing us to release another version of v3.9 in some form, there's a good chance that this fix will also be in there.

3.x pull request: 178

4.x pull request: 73

Originally posted by rseanhall

Collaborator

wixbot commented Dec 4, 2014

AssignedTo set to shall
Release changed from v3.9 to v3.10

Collaborator

wixbot commented Dec 6, 2014

This will be in the service release for WiX v3.9.

Originally posted by rseanhall
Resolution set to fixed
Status changed from Open to Resolved

Collaborator

wixbot commented Dec 11, 2014

WiX v3.9.1208.0, a candidate for the WiX v3.9 R2 servicing release with this fix, is now available. It's not publicly visible on the list of weekly releases but you can get the installer at http://wixtoolset.org/downloads/v3.9.1208.0/wix39.exe. Please take a look and see if that release fixes your problem. If we don't hear back by 21-Jan, we plan on releasing v3.9 R2 shortly thereafter.

Collaborator

wixbot commented Dec 15, 2014

I've just tested that WiX v3.9.1208.0 fixes our problem for the scenario described above. Is this version suitable for a production environment?
Thanks.

Originally posted by inigo

Collaborator

wixbot commented Jan 4, 2015

v3.9.1208.0 contains just three fixes over v3.9 RTM and is the candidate for v3.9 R2, so it should be production-ready. I'd recommend making sure v3.9.1208.0 is the final R2 build, in case we take other fixes for R2.

@wixbot wixbot added bug burn labels Dec 20, 2015

rseanhall was assigned by wixbot Dec 20, 2015

wixbot added this to the v3.10 milestone Dec 20, 2015

wixbot closed this Dec 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment