title: WIX - Custom actions on Install but not on Uninstall or Upgrade
body: <p>I have a wix installer where we have several Custom Actions running, like the registration etc. However we only want these to run on the Install, not on the upgrade or the uninstall.</p>
  
  <p>I've tried setting it to NOT Installed AND REINSTALL but that isn't working either. </p>
  
  <p>Does anyone know what the correct property is when wanting to run certain apps via custom action only on Install and not on Upgrade or uninstall?</p>
  
  <pre><code> &lt;InstallExecuteSequence&gt;
       &lt;Custom Action="PosConfig.CustomAction" Before="StartServices"&gt;&lt;![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND UILevel&gt;3]]&gt;&lt;/Custom&gt;
       &lt;Custom Action="Register.CustomAction" After="PosConfig.CustomAction"&gt;NOT Installed AND NOT UPGRADINGPRODUCTCODE &lt;/Custom&gt;
       &lt;Custom Action="OPOSSelectorFirst.CustomAction" After="Register.CustomAction"&gt;&lt;![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND &amp;ProductFeature=3 AND Not OPOSDLLINSTALLED]]&gt;&lt;/Custom&gt;
       &lt;Custom Action="OPOSSelectorUpdate.CustomAction" After="OPOSSelectorFirst.CustomAction"&gt;&lt;![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND &amp;ProductFeature=3 AND Not OPOSDLLINSTALLED]]&gt;&lt;/Custom&gt;
    &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>EDIT: Added my Custom Action Sequence.</p>