[wix-users] Checking for Product A before installing Product B

Swatantra Yadav swatantra.yadav at skykick.com
Tue Apr 23 12:34:37 PDT 2019


Hello All,

I have a requirement to install Product B only if Product A is not installed. Otherwise Product B installation should error. Does the below check look correct? I am checking for existence of a component that would be present if Product A is already installed. The check must only run at installation and not run on uninstall or update.

Thanks,
Swat




<Product>
<Property Id="MyProperty">
      <ComponentSearch Id="ProductAAlreadyInstalled" Guid="{GUID HERE}" Type="directory">
      </ComponentSearch>
    </Property>
    <Condition Message="Please uninstall Product A before installing Product B">  <![CDATA[Installed AND NOT MyProperty]]> </Condition>


<!-Other things truncated here -->
</Product>



More information about the wix-users mailing list