title: How to execute a WiX custom action DLL file with dependencies
body: <p>I want to create a CustomAction C# DLL file that depends on a third-party <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="noreferrer">.NET</a> DLL (in this specific case, it's <code>MySql.Data.dll</code>). I have the C# custom action DLL file working with the WiX fragment below. I'm just trying to figure out how to safely add a dependency to the custom action. Note: I don't actually need this third-party DLL file file for the installed application to run.</p>
  
  <pre><code>  &lt;Binary Id="MyCustomAction.dll" SourceFile="MyCustomAction.CA.dll" /&gt;
  
    &lt;CustomAction Id="FixupConfigForMysql" Return="check" /&gt;
  
    &lt;InstallExecuteSequence&gt;
       &lt;Custom Action='FixupConfigForMysql' After='InstallFiles'&gt;NOT Installed&lt;/Custom&gt;
    &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>Do I need to install the third-party DLL file (<code>MySql.Data.dll</code>) in order to get the custom action to run?</p>
  
  <p>Can I just add another Binary tag with the third-party DLL file?</p>