title: How to run custom actions while running the MSI installer in silent mode
body: <p>I've created an MSI installer using Installshield 2014. While running it from UI everything works fine but when I run it in silent mode using below command then my custom actions are not firing at all:</p>
  
  <pre><code>C:\&gt;msiexec /i "myApplication.msi" /qn WEBURL=http://localhost/mywebapp /log  out.txt
  </code></pre>
  
  <p><code>WEBURL</code> is the property required by the custom action. Value of <code>WEBURL</code> is passed to C# class library method as an argument. The C# method is called by my custom action which gets called when I click on Install button on begin installation wizard step. My custom action gets executed always i.e. I've kept the condition for the execution of the custom action as <code>1</code> which means it executes under all circumstances. </p>
  
  <p>In the log file I also see the value of <code>WEBURL</code> property getting correctly set. I'm not able to get as to what is stopping my custom action to fire while running the installer in silent mode?</p>
  
  <p><strong>Update</strong>: As suggested by Michael, after putting the custom action in <code>InstallExecuteSequence</code> it starts getting executed in silent mode. But now the problem is that it starts getting executed twice in UI mode as the same action was already getting executed through a button click on one of the dialogs which appears during <code>InstallUISequence</code>. So I want to execute my custom action by putting it into <code>InstallExecuteSequence</code> only when I'm running the installer in silent mode (so that it executes only once if I'm in UI mode).</p>