Checking wix Bootstrapper RegistrySearch bal: condition only during installation

I am creating bootsrapper for Outlook addin using wix. I should check the registry search in view mode only during installation. My checks below work fine during installation. But after installing addin, when someone disables the look, and then tries to remove my add-in, this registry file also starts with a non-installation, and this leads to a deletion lock. I need to run the Outlook registry validation check only during installation . My checks are shown below:

<util:RegistrySearch  Variable="Outlook2013Present" Root="HKLM" Key="SOFTWARE\Microsoft\Office\15.0\Outlook\InstallRoot"   Value="Path" />
<util:RegistrySearch  Variable="Outlook2013Present64" Root="HKLM" Key="SOFTWARE\Microsoft\Office\15.0\Outlook\InstallRoot"   Value="Path" Win64="yes" />

<bal:Condition Message="This setup requires Outlook 2010 or 2013. Please install office and then run installer again ">
  Outlook2010Present OR Outlook2010Present64 OR Outlook2013Present OR Outlook2013Present64
</bal:Condition>
+4
source share
1 answer

Wix Toolset WixBundleAction - BOOTSTRAPPER_ACTION, Wix Bootstrapper.

: Wix Installer Forum , - :

<bal:Condition Message="This setup requires Outlook 2010 or 2013. Please install office and then run installer again ">

      (Outlook2010Present OR Outlook2010Present64 OR Outlook2013Present OR Outlook2013Present64 ) OR WixBundleAction = 3

</bal:Condition>

WixBundleAction = 3 , .

, .

+3

All Articles