title: "Installed" condition is always true when installing or uninstalling in WiX
body: <p>I have a <a href="http://en.wikipedia.org/wiki/WiX" rel="nofollow">WiX</a> installer which does some work, and at the end, launch RSYNC installer (it's an EXE file, no problem to have both working at same time).</p>
  
  <p>But when uninstalling, I want to remove RSYNC too.</p>
  
  <pre><code>&lt;CustomAction Id="InstallRSyncDaemon" FileKey="cwRsyncServer_4.0.5_Installer.exe" ExeCommand="/q" Execute="deferred" Return="ignore" Impersonate="no" /&gt;
  &lt;CustomAction Id="UninstallRSyncDaemon" FileKey="rsync_uninstall.bat" ExeCommand="[INSTALLDIR]" Execute="deferred" Return="check" Impersonate="no" /&gt;
  &lt;CustomAction Id="EditConf" FileKey="rsync.bat" ExeCommand="[INSTALLDIR]" Execute="deferred" Return="ignore" Impersonate="no"/&gt;
  
  &lt;InstallExecuteSequence&gt;
    &lt;Custom Action='InstallRSyncDaemon' Before='InstallFinalize'&gt;(NOT remove="ALL")&lt;/Custom&gt;
    &lt;Custom Action='EditConf' After='InstallRSyncDaemon'&gt;(NOT remove="ALL")&lt;/Custom&gt;
    &lt;Custom Action='UninstallRSyncDaemon' Before='RemoveFiles'&gt;remove="ALL"&lt;/Custom&gt;
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>My problem is that during uninstalling, the Custom Action 'UninstallRSyncDaemon' is skipped:</p>
  
  <pre><code>MSI (s) (58:78) [17:37:40:475]: Skipping action: UninstallRSyncDaemon (condition is false)
  </code></pre>
  
  <p>I have tried with "installed" and other conditions, with the same result.</p>
  
  <p>At the beginnning of the log file, I have:</p>
  
  <pre><code>MSI (c) (9C:80) [17:37:36:772]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
  MSI (c) (9C:80) [17:37:36:772]: Doing action: INSTALL
  Action 17:37:36: INSTALL.
  Action start 17:37:36: INSTALL.
  MSI (c) (9C:80) [17:37:36:772]: UI Sequence table 'InstallUISequence' is present and populated.
  MSI (c) (9C:80) [17:37:36:772]: Running UISequence
  MSI (c) (9C:80) [17:37:36:772]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
  </code></pre>
  
  <p>If I try to change to the condition to launch it during installation, it is working, so for me it is just the statement of the condition.</p>
  
  <p>But I do not understand why, this is the condition always used in a tutorial or in an answer on Stack&nbsp;Overflow.</p>