'wix toolset bootstrapper msipackage incorrect detect state

I am creating vsto installer by wix toolset.

Bundle.wxs

<Chain>
  <PackageGroupRef Id="NetFx40Web" />
  <PackageGroupRef Id="PG_VSTORuntime" />
  <MsiPackage Id="SetupMSI"
              SourceFile="$(var.MsiPackageDir)\SetupMSI_MUI_$(var.Platform).msi"                  
              Permanent="no"
              DisplayInternalUI="yes"
              Vital="yes"
              Visible="yes" >
  </MsiPackage>
</Chain>

Unistall Log

Detected package: NetFx40Web, state: Present, cached: None
Detected package: EP_VSTORuntime, state: Present, cached: None
Detected package: SetupMSI_MUI_x86, state: Absent, cached: None

SetupMSI_MUI_x86 is incorrect State Absent Even though msipackage is installed.

msipackage itself works fine.

What should I check?



Solution 1:[1]

I am having this same issue, but the product ID for my MSI is static. The package is never detected.

If I run the EXE after install, and select Uninstall, only the bootstrapper is removed.

I have to run the EXE again, which runs my MSI, which then allows me to uninstall the MSI package.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user2772596