Closed adnanshaheen closed 2 years ago
Wanted to add that (as users) we do see a similar behavior when installing Microsoft Power BI Desktop (in the example, we used the 2.97.861.0 version of PBI Desktop).
Burn 3.11.2318.
The MSI for PBI Desktop quits with error code 1618 (ERROR_INSTALL_ALREADY_RUNNING), the WiX installer correctly grabs an 0x80070652 return code, but still exits with 0x0 instead of reflecting the actual MSI error code.
[0A40:0E4C][2022-03-31T12:35:09]i301: Applying execute package: ProductMSI, action: Install, path: C:\ProgramData\Package Cache\{b9c12118-21d7-4435-a809-013fe03e9a9b}v2.97.861.0\PBIDesktop_x64.msi, arguments: ' MSIFASTINSTALL="7" ACCEPT_EULA="1" TRANSFORMS=":1036" ENABLECXP="" INSTALLDESKTOPSHORTCUT="0" INSTALLLOCATION="" INTERNETEXPLORERVERSION="" NETFRAMEWORK45="528372" REG_ENABLECXP="" REG_INSTALLDESKTOPSHORTCUT="" REG_SHOWLEADGENDIALOG="" UPDATE_CHECK_URL="https://go.microsoft.com/fwlink/?LinkID=524399" UICULTURECHANGED="1" DISABLE_UPDATE_NOTIFICATION="1" ARPSYSTEMCOMPONENT="1"'
[0A40:0E4C][2022-03-31T12:35:13]e000: Error 0x80070652: Failed to install MSI package.
[0A40:0E4C][2022-03-31T12:35:13]e000: Error 0x80070652: Failed to execute MSI package.
[17A8:2FE4][2022-03-31T12:35:13]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[17A8:2FE4][2022-03-31T12:35:13]i000: Exiting bootstrapper application
[17A8:2FE4][2022-03-31T12:35:13]i000: Exit code: Success
[17A8:2FE4][2022-03-31T12:35:13]i319: Applied execute package: ProductMSI, result: 0x80070652, restart: None
[17A8:2FE4][2022-03-31T12:35:13]e000: Error 0x80070652: Failed to execute MSI package.
[0A40:0E4C][2022-03-31T12:35:13]i318: Skipped rollback of package: ProductMSI, action: Uninstall, already: Absent
[17A8:2FE4][2022-03-31T12:35:13]i319: Applied rollback package: ProductMSI, result: 0x0, restart: None
[0A40:0E4C][2022-03-31T12:35:13]i329: Removed package dependency provider: {b9c12118-21d7-4435-a809-013fe03e9a9b}, package: ProductMSI
[0A40:0E4C][2022-03-31T12:35:13]i351: Removing cached package: ProductMSI, from path: C:\ProgramData\Package Cache\{b9c12118-21d7-4435-a809-013fe03e9a9b}v2.97.861.0\
[0A40:0E4C][2022-03-31T12:35:13]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}, resume: None, restart: None, disable resume: No
[0A40:0E4C][2022-03-31T12:35:13]i330: Removed bundle dependency provider: {b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}
[0A40:0E4C][2022-03-31T12:35:13]i352: Removing cached bundle: {b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}, from path: C:\ProgramData\Package Cache\{b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}\
[0A40:0E4C][2022-03-31T12:35:13]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}, resume: None, restart initiated: No, disable resume: No
[17A8:2FE4][2022-03-31T12:35:13]i000: Exiting bootstrapper application
[17A8:2FE4][2022-03-31T12:35:13]i000: Exit code: Success
[17A8:2FE4][2022-03-31T12:35:13]i399: Apply complete, result: 0x80070652, restart: None, ba requested restart: No
[17A8:2FE4][2022-03-31T12:35:13]i500: Shutting down, exit code: 0x0
[17A8:2FE4][2022-03-31T12:35:13]i500: Shutting down, exit code: 0x0
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: ACCEPT_EULA = 1
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: DISABLE_UPDATE_NOTIFICATION = 1
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: ENABLECXP =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: INSTALLDESKTOPSHORTCUT = 0
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: INSTALLLOCATION =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: INTERNETEXPLORERVERSION =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: LANGUAGE = :1036
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: NETFRAMEWORK45 = 528372
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: REG_ENABLECXP =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: REG_INSTALLDESKTOPSHORTCUT =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: REG_SHOWLEADGENDIALOG =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: UICULTURECHANGED = 1
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: UPDATE_CHECK_URL = https://go.microsoft.com/fwlink/?LinkID=524399
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleAction = 5
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleElevated = 1
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleLog = c:\temp\PowerBISetup\PowerBISetup.Log
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleLog_ProductMSI = c:\temp\PowerBISetup\PowerBISetup_000_ProductMSI.Log
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleManufacturer = Microsoft Corporation
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleName = Microsoft PowerBI Desktop (x64)
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleOriginalSource = C:\temp\PowerBI issue\v2.97\PBIDesktopSetup_x64.exe
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleOriginalSourceFolder = C:\temp\PowerBI issue\v2.97\
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleProviderKey = {b2fe3d16-1d6c-4e70-b136-d877d5e3c8bb}
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleRollbackLog_ProductMSI = c:\temp\PowerBISetup\PowerBISetup_000_ProductMSI_rollback.Log
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleSourceProcessFolder = C:\temp\PowerBI issue\v2.97\
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleSourceProcessPath = C:\temp\PowerBI issue\v2.97\PBIDesktopSetup_x64.exe
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleTag =
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleUILevel = 2
[17A8:2FE4][2022-03-31T12:35:13]i410: Variable: WixBundleVersion = 2.97.861.0
[17A8:2FE4][2022-03-31T12:35:13]i007: Exit code: 0x0, restarting: No
0x80070652/1618/ERROR_INSTALL_ALREADY_RUNNING is not relevant to this issue. You appear to be running a custom BA that is ignoring the error. Please create a separate discussion or email the wix-users mailing list.
Triage
If an ExePackage returns ERROR_SUCCESS_REBOOT_REQUIRED and following MsiPackage returns ERROR_INSTALL_FAILURE. The exitCode set by bootstrapper is ERROR_SUCCESS_REBOOT_REQUIRED instead of ERROR_INSTALL_FAILURE.
Discussions and support
The failure to install MSI error codes must take priority over ERROR_SUCCESS_REBOOT_REQUIRED
Instructions
Bugs
Which version of WiX are you building with?
Which version of Visual Studio are you building with (if any)?
Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?
Which version of .NET are you building with?
If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?
Describe the problem and the steps to reproduce it.