title: WiX - Custom Action (after installation) does not run on upgrade
body: <p>I have created a custom action that gets triggered via UI. It works fine for new install but fails during upgrade. However, if I run a repair from control panel, it then runs fine. I tried capturing msi log but it does not give any clue. Here are the snippets...</p>
  
  <p>UI:</p>
  
  <pre><code>&lt;Control Id="CloseButton" Type="PushButton" X="230" Y="243" Width="66" Height="17" Default="yes" Cancel="yes" Text="&amp;amp;Continue"&gt;    
    &lt;Publish Event="DoAction" Value="ConfigureServer1"&gt;1&lt;/Publish&gt;   
    &lt;Publish Event="EndDialog" Value="Return"&gt;1&lt;/Publish&gt;    
  &lt;/Control&gt;
  </code></pre>
  
  <p>Custom Action:</p>
  
  <pre><code>&lt;CustomAction Id="ConfigureServer1" Impersonate="no" Directory="TARGETDIR" Return="asyncNoWait" ExeCommand="[#fileSetupDb] &amp;quot;[ProductVersion]&amp;quot; &amp;quot;[OCISUPGRADE]&amp;quot;"&gt;&lt;/CustomAction&gt;
  </code></pre>
  
  <p>Sequence for the UI file:</p>
  
  <pre><code>&lt;InstallUISequence&gt;
  ......
   &lt;Show Dialog="FinishedForm" OnExit="success" /&gt;
  ......
  &lt;/InstallUISequence&gt;
  </code></pre>
  
  <p>Any clues.... or anything I can try to debug etc.? I tried for a couple of days with no results. I am not a newbie in msi or wix and not an expert either.</p>