I am trying to detect an install condition in a Wix Bootstrapper (*.wxs) source file. Wix declares "Burn Built-in Variables" in documentation here.
My source code looks like this:
<util:RegistrySearch
Id="SearchForMyProduct"
Variable="MyProductIsInstalled"
Result="exists"
Root="HKLM"
Key="SYSTEM\CurrentControlSet\services\MyProduct" />
<bal:Condition Message="service was found. MyProduct is already installed. Please uninstall and try again">
(WixBundleAction = 3) AND (MyProductIsInstalled = 0)
</bal:Condition>
I do not see in the Burn log that WixBundleAction is set. No matter what value I test WixBundleAction against, (WixBundleAction = 3) is FALSE. The behavior is the same whether I execute the installer via double-click or from the command-line.