Burn Bootstrapper does not uninstall chained MSI - wix

I have a Burn Bootstrapper with 2 MSIs and 2 Exe Packages. My Product MSI does not get uninstalled when I uninstall with the bootstrapper.
relevant Package part from Bundle.wxs
<MsiPackage SourceFile="Resources\MyProduct.msi" ForcePerMachine="yes" Visible="yes" Permanent="no">
(the visibility is only set to be able to uninstall "per hand" later on. The install log seems to be alright regarding installation of the product, and it shows (the MSI) in Add/Remove Programs.
(excerpt)
[0020:0D1C][2015-07-15T16:15:50]i201: Planned package: MyProduct.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0B34:0E40][2015-07-15T16:17:43]i305: Verified acquired payload: MyProduct.msi at path: C:\ProgramData\Package Cache\.unverified\MyProduct.msi, moving to: C:\ProgramData\Package Cache\{5147F2CD-4057-408C-9871-5CF419E4A064}v3.14.0000\MyProduct.msi.
[0B34:0AEC][2015-07-15T16:17:44]i323: Registering package dependency provider: {5147F2CD-4057-408C-9871-5CF419E4A064}, version: 3.14.0000, package: MyProduct.msi
[0B34:0AEC][2015-07-15T16:17:44]i301: Applying execute package: MyProduct.msi, action: Install, path: C:\ProgramData\Package Cache\{5147F2CD-4057-408C-9871-5CF419E4A064}v3.14.0000\MyProduct.msi, arguments: ' ALLUSERS="1" MSIFASTINSTALL="7" INSTALLBASE="1"'
[0020:0D1C][2015-07-15T16:23:38]i319: Applied execute package: MyProduct.msi, result: 0x0, restart: None
[0B34:0AEC][2015-07-15T16:23:38]i325: Registering dependency: {973aefce-662d-437a-b703-e6e06af73ea5} on package provider: {5147F2CD-4057-408C-9871-5CF419E4A064}, package: MyProduct.msi
on uninstall however the state of the package is always absent, thus not uninstalled. is this a possible bug or am I missing something painfully obvious?
uninstall log excerpt:
[0F30:0EE0][2015-07-15T16:24:48]i101: Detected package: MyProduct.msi, state: Absent, cached: Complete
[0F30:0EE0][2015-07-15T16:24:49]i201: Planned package: MyProduct.msi, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: Unregister
[0BBC:0FD8][2015-07-15T16:24:50]i326: Removed dependency: {973aefce-662d-437a-b703-e6e06af73ea5} on package provider: {5147F2CD-4057-408C-9871-5CF419E4A064}, package MyProduct.msi
[0BBC:0FD8][2015-07-15T16:24:50]i329: Removed package dependency provider: {5147F2CD-4057-408C-9871-5CF419E4A064}, package: MyProduct.msi
[0BBC:0FD8][2015-07-15T16:24:50]i351: Removing cached package: MyProduct.msi, from path: C:\ProgramData\Package Cache\{5147F2CD-4057-408C-9871-5CF419E4A064}v3.14.0000\
Tested with a VM and an empty snapshot, to be sure to not have a tainted testing environment. (using WiX 3.8 + wixextba because i need ability to check for two directories listed and a few little checks here and there)
edit: with a fresh head this morning i tried it again, and reread all the logs probably the culprit may be (different guids, new run...)
[0FA0:054C][2015-07-16T10:09:48]w355: Unable to register source directory: C:\ProgramData\Package Cache\{39A0BA42-7EAB-435C-BADC-C531E5B16763}v3.14.0000\, product: {39A0BA42-7EAB-435C-BADC-C531E5B16763}, reason: 0x80070645. Continuing...
i found nothing regarding this error except for problems with Microsoft Security Essentials. Any clues?
edit2: MSDN Errorcodes 1605 is "ERROR_UNKNOWN_PRODUCT" yet the MSI Installation log has no "return value 3" and states
MSI (s) (90:78) [11:06:10:483]: Windows Installer installed the product. Product Name: MyProduct. Product Version: 3.14.0000. Product Language: 1031. Manufacturer: MyManufacturer. Installation success or error status: 0.
I can uninstall it when set Visible="yes".

To whom it may concern;
the problem was, that the MSI/wxs had Id='*'for Product. As soon as I fixed the Productcode (which will be changed for every release to get Major Upgrades) the registration does work and the MSI is properly uninstalled.

Related

WiX Bootstrapper issues installing prerequisites for Outlook add-in, error 0x80091007

I'm trying to use WiX Bootstrapper project to install prerequisites for my Outlook add-in MSI. It needs two things:
.NET Framework 3.5
Visual Studio 2010 Tools for Office Runtime
So I created a WiX Bootstrapper project in Visual Studio and I'm doing the bundle identification and installation as such:
<Bundle Name="BootstrapperTestApp" Version="1.0.0.0" Manufacturer="<company>" UpgradeCode="<guid>"
AboutUrl="https://example.com" Copyright="Copyright (C) 2020 by example.com">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<util:RegistrySearch Id="idOffice2007Installed" Variable="OFFICE2007INST"
Root="HKLM" Key="Software\Microsoft\Office\12.0\Outlook\InstallRoot" Result="exists" />
<util:RegistrySearch Id="isVSTORInstalled" Variable="VSTOR"
Root="HKLM" Key="SOFTWARE\Microsoft\VSTO Runtime Setup\v4R" Result="exists" />
<Chain>
<!-- We need .NET 3.5 to be installed -->
<ExePackage SourceFile="Source\dotNetFx35setup.exe" Permanent="yes" Vital="yes" Cache="no" Compressed="no" PerMachine="yes"
DisplayName=".NET Framework 3.5"
DownloadUrl="http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe"
InstallCommand="/q /norestart"
DetectCondition="NETFRAMEWORK35"
InstallCondition="NOT NETFRAMEWORK35" />
<!-- We need VSTO 2010 Tools for Office Runtime for .NET to be installed. (Note that we need it only for Office 2007) -->
<ExePackage SourceFile="Source\vstor_redist.exe" Permanent="yes" Vital="yes" Cache="no" Compressed="no" PerMachine="yes"
DisplayName="Visual Studio 2010 Tools for Office Runtime 3.5"
DownloadUrl="https://go.microsoft.com/fwlink/?LinkId=158917"
InstallCommand="/q /norestart"
DetectCondition="VSTOR"
InstallCondition="OFFICE2007INST AND NOT VSTOR" />
<!-- Our actual add-in MSI -->
<MsiPackage SourceFile="$(var.SourceMSI)" Vital="yes" />
</Chain>
</Bundle>
I have 3 issues that come up, so I'd appreciate any help:
I can't seem to find a download link for .NET 3.5 to use here. Is the link I'm using above the correct one?
If I build and run this bootstrapper MSI in a VM that has .NET 3.5 installed, my bootstrapper still begins downloading and installing it. Why?
Lastly, if I let it run, when it switches to installing VSTO 2010 Tools for Office Runtime, it tries for 3 times and then fails with an error code 0x80091007. I'm attaching the full log for that:
[0C54:09AC][2020-07-02T14:17:43]i001: Burn v3.7.1224.0, Windows v6.2 (Build 9200: Service Pack 0), path: C:\Users\Admin\Desktop\BootstrapperTestApp.exe, cmdline: ''
[0C54:09AC][2020-07-02T14:17:43]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Admin\AppData\Local\Temp\BootstrapperTestApp_20200702141743.log'
[0C54:09AC][2020-07-02T14:17:43]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Admin\Desktop\BootstrapperTestApp.exe'
[0C54:09AC][2020-07-02T14:17:43]i000: Setting string variable 'WixBundleName' to value 'BootstrapperTestApp'
[0C54:09AC][2020-07-02T14:17:43]i100: Detect begin, 3 packages
[0C54:09AC][2020-07-02T14:17:43]i000: Setting numeric variable 'OFFICE2007INST' to value 1
[0C54:09AC][2020-07-02T14:17:43]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\VSTO Runtime Setup\v4R'
[0C54:09AC][2020-07-02T14:17:43]i000: Setting numeric variable 'VSTOR' to value 0
[0C54:09AC][2020-07-02T14:17:43]i052: Condition 'NETFRAMEWORK35' evaluates to false.
[0C54:09AC][2020-07-02T14:17:43]i052: Condition 'VSTOR' evaluates to false.
[0C54:09AC][2020-07-02T14:17:43]i101: Detected package: dotNetFx35setup.exe, state: Absent, cached: None
[0C54:09AC][2020-07-02T14:17:43]i101: Detected package: vstor_redist.exe, state: Absent, cached: None
[0C54:09AC][2020-07-02T14:17:43]i101: Detected package: TestAppInstaller.msi, state: Absent, cached: None
[0C54:09AC][2020-07-02T14:17:43]i199: Detect complete, result: 0x0
[0C54:09AC][2020-07-02T14:17:45]i200: Plan begin, 3 packages, action: Install
[0C54:09AC][2020-07-02T14:17:45]i052: Condition 'NOT NETFRAMEWORK35' evaluates to true.
[0C54:09AC][2020-07-02T14:17:45]w321: Skipping dependency registration on package with no dependency providers: dotNetFx35setup.exe
[0C54:09AC][2020-07-02T14:17:45]i000: Setting string variable 'WixBundleLog_dotNetFx35setup.exe' to value 'C:\Users\Admin\AppData\Local\Temp\BootstrapperTestApp_20200702141743_0_dotNetFx35setup.exe.log'
[0C54:09AC][2020-07-02T14:17:45]i052: Condition 'OFFICE2007INST AND NOT VSTOR' evaluates to true.
[0C54:09AC][2020-07-02T14:17:45]w321: Skipping dependency registration on package with no dependency providers: vstor_redist.exe
[0C54:09AC][2020-07-02T14:17:45]i000: Setting string variable 'WixBundleLog_vstor_redist.exe' to value 'C:\Users\Admin\AppData\Local\Temp\BootstrapperTestApp_20200702141743_1_vstor_redist.exe.log'
[0C54:09AC][2020-07-02T14:17:45]i000: Setting string variable 'WixBundleRollbackLog_TestAppInstaller.msi' to value 'C:\Users\Admin\AppData\Local\Temp\BootstrapperTestApp_20200702141743_2_TestAppInstaller.msi_rollback.log'
[0C54:09AC][2020-07-02T14:17:45]i000: Setting string variable 'WixBundleLog_TestAppInstaller.msi' to value 'C:\Users\Admin\AppData\Local\Temp\BootstrapperTestApp_20200702141743_2_TestAppInstaller.msi.log'
[0C54:09AC][2020-07-02T14:17:45]i201: Planned package: dotNetFx35setup.exe, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: Yes, dependency: None
[0C54:09AC][2020-07-02T14:17:45]i201: Planned package: vstor_redist.exe, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: Yes, dependency: None
[0C54:09AC][2020-07-02T14:17:45]i201: Planned package: TestAppInstaller.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0C54:09AC][2020-07-02T14:17:45]i299: Plan complete, result: 0x0
[0C54:09AC][2020-07-02T14:17:45]i300: Apply begin
[0EAC:0778][2020-07-02T14:17:47]i360: Creating a system restore point.
[0EAC:0778][2020-07-02T14:17:51]i361: Created a system restore point.
[0EAC:0778][2020-07-02T14:17:51]i000: Caching bundle from: 'C:\Users\Admin\AppData\Local\Temp\{ec724e25-c6e3-47ba-91a3-8e894c092324}\.be\BootstrapperTestApp.exe' to: 'C:\ProgramData\Package Cache\{ec724e25-c6e3-47ba-91a3-8e894c092324}\BootstrapperTestApp.exe'
[0EAC:0778][2020-07-02T14:17:51]i320: Registering bundle dependency provider: {ec724e25-c6e3-47ba-91a3-8e894c092324}, version: 1.0.0.0
[0C54:0428][2020-07-02T14:17:51]w343: Prompt for source of package: dotNetFx35setup.exe, payload: dotNetFx35setup.exe, path: C:\Users\Admin\Desktop\dotNetFx35setup.exe
[0C54:0428][2020-07-02T14:17:51]i338: Acquiring package: dotNetFx35setup.exe, payload: dotNetFx35setup.exe, download from: http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe
[0EAC:0D58][2020-07-02T14:18:32]i305: Verified acquired payload: dotNetFx35setup.exe at path: C:\ProgramData\Package Cache\.unverified\dotNetFx35setup.exe, moving to: C:\ProgramData\Package Cache\B0CA05C12EBB9A3610206BAD7F219E02B7873CBD\dotNetFx35setup.exe.
[0C54:0428][2020-07-02T14:18:32]w343: Prompt for source of package: vstor_redist.exe, payload: vstor_redist.exe, path: C:\Users\Admin\Desktop\vstor_redist.exe
[0C54:0428][2020-07-02T14:18:32]i338: Acquiring package: vstor_redist.exe, payload: vstor_redist.exe, download from: https://go.microsoft.com/fwlink/?LinkId=158917
[0EAC:0D58][2020-07-02T14:18:40]e000: Error 0x80091007: Hash mismatch for path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe
[0EAC:0D58][2020-07-02T14:18:40]e000: Error 0x80091007: Failed to verify hash of payload: vstor_redist.exe
[0EAC:0D58][2020-07-02T14:18:40]e310: Failed to verify payload: vstor_redist.exe at path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe, error: 0x80091007. Deleting file.
[0EAC:0D58][2020-07-02T14:18:40]e000: Error 0x80091007: Failed to cache payload: vstor_redist.exe
[0C54:0428][2020-07-02T14:18:40]e314: Failed to cache payload: vstor_redist.exe from working path: C:\Users\Admin\AppData\Local\Temp\{ec724e25-c6e3-47ba-91a3-8e894c092324}\vstor_redist.exe, error: 0x80091007.
[0C54:0428][2020-07-02T14:18:40]e349: Application requested retry of payload: vstor_redist.exe, encountered error: 0x80091007. Retrying...
[0C54:0428][2020-07-02T14:18:40]w343: Prompt for source of package: vstor_redist.exe, payload: vstor_redist.exe, path: C:\Users\Admin\Desktop\vstor_redist.exe
[0C54:0428][2020-07-02T14:18:43]i338: Acquiring package: vstor_redist.exe, payload: vstor_redist.exe, download from: https://go.microsoft.com/fwlink/?LinkId=158917
[0EAC:0D58][2020-07-02T14:18:51]e000: Error 0x80091007: Hash mismatch for path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe
[0EAC:0D58][2020-07-02T14:18:51]e000: Error 0x80091007: Failed to verify hash of payload: vstor_redist.exe
[0EAC:0D58][2020-07-02T14:18:51]e310: Failed to verify payload: vstor_redist.exe at path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe, error: 0x80091007. Deleting file.
[0EAC:0D58][2020-07-02T14:18:51]e000: Error 0x80091007: Failed to cache payload: vstor_redist.exe
[0C54:0428][2020-07-02T14:18:51]e314: Failed to cache payload: vstor_redist.exe from working path: C:\Users\Admin\AppData\Local\Temp\{ec724e25-c6e3-47ba-91a3-8e894c092324}\vstor_redist.exe, error: 0x80091007.
[0C54:0428][2020-07-02T14:18:51]e349: Application requested retry of payload: vstor_redist.exe, encountered error: 0x80091007. Retrying...
[0C54:0428][2020-07-02T14:18:51]w343: Prompt for source of package: vstor_redist.exe, payload: vstor_redist.exe, path: C:\Users\Admin\Desktop\vstor_redist.exe
[0C54:0428][2020-07-02T14:18:54]i338: Acquiring package: vstor_redist.exe, payload: vstor_redist.exe, download from: https://go.microsoft.com/fwlink/?LinkId=158917
[0EAC:0D58][2020-07-02T14:19:02]e000: Error 0x80091007: Hash mismatch for path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe
[0EAC:0D58][2020-07-02T14:19:02]e000: Error 0x80091007: Failed to verify hash of payload: vstor_redist.exe
[0EAC:0D58][2020-07-02T14:19:02]e310: Failed to verify payload: vstor_redist.exe at path: C:\ProgramData\Package Cache\.unverified\vstor_redist.exe, error: 0x80091007. Deleting file.
[0EAC:0D58][2020-07-02T14:19:02]e000: Error 0x80091007: Failed to cache payload: vstor_redist.exe
[0C54:0428][2020-07-02T14:19:02]e314: Failed to cache payload: vstor_redist.exe from working path: C:\Users\Admin\AppData\Local\Temp\{ec724e25-c6e3-47ba-91a3-8e894c092324}\vstor_redist.exe, error: 0x80091007.
[0EAC:0D58][2020-07-02T14:19:02]i351: Removing cached package: dotNetFx35setup.exe, from path: C:\ProgramData\Package Cache\B0CA05C12EBB9A3610206BAD7F219E02B7873CBD\
[0C54:09AC][2020-07-02T14:19:02]e000: Error 0x80091007: Failed while caching, aborting execution.
[0EAC:0778][2020-07-02T14:19:02]i330: Removed bundle dependency provider: {ec724e25-c6e3-47ba-91a3-8e894c092324}
[0EAC:0778][2020-07-02T14:19:02]i352: Removing cached bundle: {ec724e25-c6e3-47ba-91a3-8e894c092324}, from path: C:\ProgramData\Package Cache\{ec724e25-c6e3-47ba-91a3-8e894c092324}\
[0C54:09AC][2020-07-02T14:19:02]i399: Apply complete, result: 0x80091007, restart: None, ba requested restart: No

Wix Managed Bootstrapper fails to unload WtsApi32.dll on uninstall of upgraded bundle

I have created a managed bootstrapper (wix v3.9.1208.0) that works a little like Visual studio/Resharper installers which works great in that:
On install it installs pre-requisites and installs or skips what you select from the list of available applications that are bundled up.
If you modify then it will uninstall/skip/install you selections.
Uninstall removes all non pre-requisite applications.
My problem is when I Upgrade. The applications being upgraded are installed with no problem and even the uninstall of the previous bundle gets kicked off at the end however this is where it all goes wrong.
It gets to the ApplyComplete event where I call the bootstrappers InvokeShutdown and then it stops. The last few lines of my log getting to this point is as follows with the error at the end.
[2950:1B18][2015-02-26T16:03:03]i207: Planned related bundle: {afe9a965-64d2-4656-a968-95ad1ca320a1}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[2950:1B18][2015-02-26T16:03:03]i201: Planned package: App1, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[2950:1B18][2015-02-26T16:03:03]i201: Planned package: LicenceManager, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[2950:1B18][2015-02-26T16:03:03]i201: Planned package: vcRedistx64, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2950:1B18][2015-02-26T16:03:03]i201: Planned package: NetFx452Web, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2950:1B18][2015-02-26T16:03:03]i201: Planned package: dotnetfx35setup.exe, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2950:1B18][2015-02-26T16:03:03]i000: Executing OnPlanComplete
[2950:1B18][2015-02-26T16:03:03]i299: Plan complete, result: 0x0
[2950:1B18][2015-02-26T16:03:03]i300: Apply begin
[2934:22D0][2015-02-26T16:03:03]i329: Removed package dependency provider: {93F9AE5C-EC11-4122-8F1D-11A4EEDAF4C9}, package: App1
[2934:22D0][2015-02-26T16:03:03]i329: Removed package dependency provider: {2326EAF9-A4C2-4AE0-A22B-8B8640B1A151}, package: LicenceManager
[2950:1B18][2015-02-26T16:03:03]i000: Executing OnExecuteComplete
[2934:22D0][2015-02-26T16:03:03]i330: Removed bundle dependency provider: {41b57ce1-0fc2-4761-9779-fb0dab861ce9}
[2934:22D0][2015-02-26T16:03:03]i352: Removing cached bundle: {41b57ce1-0fc2-4761-9779-fb0dab861ce9}, from path: C:\ProgramData\Package Cache\{41b57ce1-0fc2-4761-9779-fb0dab861ce9}\
[2950:1B18][2015-02-26T16:03:03]i000: Executing OnApplyComplete
[2950:1B18][2015-02-26T16:03:03]i000: OnApplyComplete() - Invoking shutdown due to Action being Uninstall
[2950:20E8][2015-02-26T16:03:03]e000: Unable to load DLL 'WtsApi32.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I looked at procmon to see if i could get any more insight and found these as the last few entries. There is a delete pending for the WtsApi32.dll just before the log entry for the dll being locked. Is the shutdown trying to happen too early?
08:01:50.8330216 Bootstrapper.exe 12112 CreateFile C:\ProgramData\Package Cache\{6ab12c5b-558c-42b4-9f60-958771befc1c}\POWRPROF.DLL DELETE PENDING Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
08:01:50.8335070 Bootstrapper.exe 12112 CreateFile C:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WtsApi32.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
08:01:50.8336118 Bootstrapper.exe 12112 CreateFile C:\ProgramData\Package Cache\{6ab12c5b-558c-42b4-9f60-958771befc1c}\WtsApi32.dll DELETE PENDING Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
08:01:50.8341131 Bootstrapper.exe 12112 WriteFile C:\Users\UserName\AppData\Local\Temp\BundleLog_20150227080127.log SUCCESS Offset: 6,794, Length: 146
The package folder where the wtsapi32.dll is trying to be deleted from does show as access denied if I try and go there in windows explorer.
turns out someone had commented out my logic in my custom BA override of Run to show the view in certain scenarios and not others. So when the Command.Display was Embedded the code was trying to display my view and hence I think dlls were getting locked on shutdown.
Oh well at least the cause is found!

wix remove old but not install new version

I can find what the problem is. Wix finds new version, removes old but not install new. What can be the problem?
log
[0A3C:0A40][2014-12-01T01:32:53]i200: Plan begin, 2 packages, action: Install
[0A3C:0A40][2014-12-01T01:32:53]w321: Skipping dependency registration on package with no dependency providers: NetFx40Redist
[0A3C:0A40][2014-12-01T01:32:53]i201: Planned package: NetFx40Redist, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0A3C:0A40][2014-12-01T01:32:53]i201: Planned package: Synchronizer, state: Obsolete, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0A3C:0A40][2014-12-01T01:32:53]i207: Planned related bundle: {7d6ed5aa-7d5e-4ae7-821a-11a2299402c1}, type: Upgrade, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, dependency: None
[0A3C:0A40][2014-12-01T01:32:53]i299: Plan complete, result: 0x0
[0A3C:0A40][2014-12-01T01:32:53]i300: Apply begin
[0CB8:078C][2014-12-01T01:32:53]i360: Creating a system restore point.
[0CB8:078C][2014-12-01T01:33:12]i361: Created a system restore point.
[0CB8:078C][2014-12-01T01:33:12]i000: Caching bundle from: 'C:\Users\test\AppData\Local\Temp\{d345c5a3-17e8-4106-a8e6-c89c587c52e1}\.be\InstallerBundle.exe' to: 'C:\ProgramData\Package Cache\{d345c5a3-17e8-4106-a8e6-c89c587c52e1}\InstallerBundle.exe'
[0CB8:078C][2014-12-01T01:33:12]i320: Registering bundle dependency provider: {d345c5a3-17e8-4106-a8e6-c89c587c52e1}, version: 1.0.5.51
[0CB8:078C][2014-12-01T01:33:12]i301: Applying execute package: {7d6ed5aa-7d5e-4ae7-821a-11a2299402c1}, action: Uninstall, path: C:\ProgramData\Package Cache\{7d6ed5aa-7d5e-4ae7-821a-11a2299402c1}\InstallerBundle.exe, arguments: '"C:\ProgramData\Package Cache\{7d6ed5aa-7d5e-4ae7-821a-11a2299402c1}\InstallerBundle.exe" -uninstall -quiet -burn.related.upgrade -burn.ancestors={d345c5a3-17e8-4106-a8e6-c89c587c52e1}'
[0A3C:0A40][2014-12-01T01:33:24]i319: Applied execute package: {7d6ed5aa-7d5e-4ae7-821a-11a2299402c1}, result: 0x0, restart: None
[0A3C:0A40][2014-12-01T01:33:24]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
[0A3C:0A40][2014-12-01T01:35:27]i500: Shutting down, exit code: 0x0
my product.wxs (part of upgrading)
<Property Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' />
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion OnlyDetect="yes"
Minimum="1.0.0.0"
Maximum='99.0.0.0'
IncludeMinimum="yes"
IncludeMaximum="no"
Property="PREVIOUSVERSIONSINSTALLED"
IgnoreRemoveFailure="yes" />
</Upgrade>
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize"/>
</InstallExecuteSequence>
What can cause this? Also, I should say that I have read questions about majorUpgrade and tried to add it but nothing changes. Moreover, this installer worked fine before last merge (but nothing is changed in installer). This is really frustrating.

Burn installer doesn't uninstall the MSI

My burn installer doesn't uninstals the msi on some PC's
After running the uninstall process the app still remains in programs.
Here is uninstall log difference:
[264C:15B0][2014-10-07T16:24:00]i201: Planned package: Installer.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
for successful uninstall and
[08F4:1254][2014-10-07T15:19:34]i201: Planned package: Installer.msi, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: Unregister
for failed uninstall.
I was wondering what can cause this issue and how it can be managed?

WIX Bundle custom UI Not installing packages

I have setup a custom UI boot strap application. It seems pretty standard and im not sure the problem has anything to do with the custom UI side.
The problem is when I press install and call from c# code Engine.Plan(LaunchAction.Install);
nothing happens, no packages are installed, no events are fired from the bootsrapapplication. The log is updated with a message that to me says it is trying to install?
'Plan begin, 6 packages, action: Install'
;
[2AC8:28C8][2013-12-20T13:55:22]i001: Burn v3.9.10.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Projects\insite-ship\trunk\Insite.Ship\InstallerPackages\FullInstall.exe, cmdline: '-burn.unelevated BurnPipe.{782B0AE9-76D2-4CD2-A177-04B969ED5DC1} {475E24AF-43DA-4A90-9484-2B12BBD7CD34} 11044'
[2AC8:28C8][2013-12-20T13:55:22]i000: Initializing string variable 'INSTALLSQL' to value 'true'
[2AC8:28C8][2013-12-20T13:55:22]i000: Initializing string variable 'InstallEpicor' to value 'true'
[2AC8:28C8][2013-12-20T13:55:22]i000: Initializing string variable 'InstallIntegration' to value 'true'
[2AC8:28C8][2013-12-20T13:55:22]i000: Initializing string variable 'InstallPrint' to value 'true'
[2AC8:28C8][2013-12-20T13:55:22]i000: Initializing string variable 'InstallWeb' to value 'true'
[2AC8:28C8][2013-12-20T13:55:22]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522.log'
[2AC8:28C8][2013-12-20T13:55:22]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Projects\insite-ship\trunk\Insite.Ship\InstallerPackages\FullInstall.exe'
[2AC8:28C8][2013-12-20T13:55:22]i000: Setting string variable 'WixBundleName' to value 'Insite Ship Installer FULL'
[2AC8:28C8][2013-12-20T13:55:22]i000: Loading managed bootstrapper application.
[2AC8:28C8][2013-12-20T13:55:22]i000: Creating BA thread to run asynchronously.
[2AC8:2040][2013-12-20T13:55:22]i000: Launching custom TestBA UX
[2AC8:28C8][2013-12-20T13:55:22]i100: Detect begin, 6 packages
[2AC8:28C8][2013-12-20T13:55:22]i000: Setting string variable 'Netfx4x64FullVersion' to value '4.5.50938'
[2AC8:28C8][2013-12-20T13:55:22]i000: Setting string variable 'Netfx4FullVersion' to value '4.5.50938'
[2AC8:28C8][2013-12-20T13:55:22]i052: Condition 'Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)' evaluates to true.
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: Netfx4Full, state: Present, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: sql, state: Absent, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: epicor, state: Absent, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: integration, state: Absent, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: Print, state: Absent, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i101: Detected package: Web, state: Absent, cached: None
[2AC8:28C8][2013-12-20T13:55:22]i199: Detect complete, result: 0x0
[2AC8:28C8][2013-12-20T13:55:29]i200: Plan begin, 6 packages, action: Install
[2AC8:28C8][2013-12-20T13:55:29]w321: Skipping dependency registration on package with no dependency providers: Netfx4Full
[2AC8:28C8][2013-12-20T13:55:29]w321: Skipping dependency registration on package with no dependency providers: sql
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleLog_sql' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_0_sql.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleRollbackLog_epicor' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_1_epicor_rollback.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleLog_epicor' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_1_epicor.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleRollbackLog_integration' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_2_integration_rollback.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleLog_integration' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_2_integration.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleRollbackLog_Print' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_3_Print_rollback.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleLog_Print' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_3_Print.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleRollbackLog_Web' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_4_Web_rollback.log'
[2AC8:28C8][2013-12-20T13:55:29]i000: Setting string variable 'WixBundleLog_Web' to value 'C:\Users\pwade\AppData\Local\Temp\Insite_Ship_Installer_FULL_20131220135522_4_Web.log'
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: Netfx4Full, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: sql, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: epicor, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: integration, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: Print, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[2AC8:28C8][2013-12-20T13:55:29]i201: Planned package: Web, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[2AC8:28C8][2013-12-20T13:55:29]i299: Plan complete, result: 0x0
Calling Plan() just sets up the execution plan. In order to actually perform the actions (install/uninstall, etc, the packages), you'll need to follow the Plan with a call to Engine.Apply(IntPtr.Zero).
Note: you'll want to hook into the PlanComplete event to know when planning is actually done, since it's an async process.
I've written a series of blog posts on writing a Wix custom managed UI installer, of which parts 4 and 5 talk about this exact process and you might find them helpful:
http://www.wrightfully.com/2013/01/part-1-of-writing-your-own-net-based.html