I am currently utilizing a WiX v4 bootstrapper bundle to install and uninstall an MsiPackage. Although I've encountered no issues during the installation process, I've been unable to successfully execute the uninstallation. Strangely, rather than triggering the uninstallation dialogue, initiating the uninstall process opens the installation dialogue of the Msi.
Here's an excerpt of the relevant error codes from the installer_*.log file:
... (omit for brevity)
[2A50:7730][2023-06-06T14:16:52]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4E2E0599-61F5-40A3-AA8F-3DF134052F2D}, options: 0x3, disable resume: No
[2A50:7730][2023-06-06T14:16:52]i000: Caching bundle from: 'C:\Users\L4AB1~1.SCH\AppData\Local\Temp\{91FB9950-C5E6-40BE-A718-600ECF3EC42B}\.be\WixBundleInstaller.exe' to: 'C:\ProgramData\Package Cache\{4E2E0599-61F5-40A3-AA8F-3DF134052F2D}\WixBundleInstaller.exe'
[2A50:7730][2023-06-06T14:16:52]i320: Registering bundle dependency provider: {4E2E0599-61F5-40A3-AA8F-3DF134052F2D}, version: 12.3.2
[2A50:7730][2023-06-06T14:16:52]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4E2E0599-61F5-40A3-AA8F-3DF134052F2D}, resume: Active, restart initiated: No, disable resume: No
[2A50:4168][2023-06-06T14:16:52]i304: Verified existing payload: WixMsiInstaller.msi at path: C:\ProgramData\Package Cache\{C4AC8AB6-436A-4212-A838-D1FFB6F503A4}v12.3.2\WixMsiInstaller.msi.
[2A50:7730][2023-06-06T14:16:52]i326: Removed dependency: {4E2E0599-61F5-40A3-AA8F-3DF134052F2D} on package provider: {C4AC8AB6-436A-4212-A838-D1FFB6F503A4}_v12.3.2, package WixMsiInstaller.msi
[2A50:7730][2023-06-06T14:16:52]i329: Removed package dependency provider: {C4AC8AB6-436A-4212-A838-D1FFB6F503A4}_v12.3.2, package: WixMsiInstaller.msi
[2A50:7730][2023-06-06T14:16:52]i301: Applying execute package: WixMsiInstaller.msi, action: Uninstall, path: (null), arguments: ' ALLUSERS="1" ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" BURNMSIUNINSTALL=1 REBOOT=ReallySuppress IGNOREDEPENDENCIES=ALL'
[2A50:7730][2023-06-06T14:17:06]e000: Error 0x80070643: Failed to configure product: {C4AC8AB6-436A-4212-A838-D1FFB6F503A4}
[2A50:7730][2023-06-06T14:17:06]e000: Error 0x80070643: Failed to uninstall MSI package.
[2A50:7730][2023-06-06T14:17:06]e000: Error 0x80070643: Failed to execute MSI package.
[5024:4440][2023-06-06T14:17:06]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[5024:4440][2023-06-06T14:17:06]i319: Applied execute package: WixMsiInstaller.msi, result: 0x80070643, restart: None
[5024:4440][2023-06-06T14:17:06]e000: Error 0x80070643: Failed to execute MSI package.
...
Intriguingly, when I independently open the MSI using the arguments from the bundle log, it displays the uninstallation dialog and permits me to uninstall the program. I've also verified that the MSI works by manually installation and uninstallation of the MSI package (without the bundle).
Manual command with arguments from the log I've tried (which works fine):
msiexec /i "WixMsiInstaller.msi" ALLUSERS="1" ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" BURNMSIUNINSTALL=1 REBOOT=ReallySuppress IGNOREDEPENDENCIES=ALL
I attempted to address this issue by enabling ForcePerMachine="Yes"
, as suggested in another Stack Overflow post which did not work in my case. This is the package code I use in the burn bundle:
<MsiPackage
Id="Installation of Main Package"
SourceFile="$(MainPackageSourceFile)"
Permanent="no"
Vital="yes"
Visible="no"
Cache="keep"
ForcePerMachine="yes"
Compressed="no"
bal:DisplayInternalUICondition="1"
EnableFeatureSelection="no">
</MsiPackage>
I have also set Scope="perMachine"
in the MSI package.
Despite upgrading from WiX 4.0.0 to 4.0.1, this issue persists. I'm at a loss as to what might be the cause of this problem. If anyone has encountered a similar issue or has insights into potential resolutions, your input would be greatly appreciated. Thanks!