title: How to execute a WiX custom action C++ DLL file with dependencies?
body: <p>I have already achieved a custom command without dependence without any problem. </p>
  
  <p>But here it is a custom command that need to be link with four other dll to work. </p>
  
  <pre><code>&lt;Binary Id="libeay32"          SourceFile="..\bin\libeay32.dll"/&gt;
  &lt;Binary Id="libintl"           SourceFile="..\bin\libintl.dll"/&gt;
  &lt;Binary Id="libpq"             SourceFile="..\bin\libpq.dll"/&gt;
  &lt;Binary Id="ssleay32"          SourceFile="..\bin\ssleay32.dll"/&gt;
  &lt;Binary Id="custom"            SourceFile="..\bin\custom_cmd.dll"/&gt;
  
    &lt;CustomAction Id="cc_postgres" BinaryKey="custom" DllEntry="on_postgres_cmd" Execute="immediate" Return="check" HideTarget="no" /&gt;
  </code></pre>
  
  <p>I got the following error at installation </p>
  
  <blockquote>
    <p>Error 1723. There is a problem with this Windows Installer package. A
    DLL required for this install to complete could not be run. Contact
    your support personnel or package vendor.  Action cc_postgres, entry:
    on_postgres_cmd, library: C:\Users\THE\AppData\Local\Temp\MSI17BB.tmp</p>
  </blockquote>
  
  <p>How doing this spot in Wix, without recompile everything in static.</p>
  
  <p>Thx.</p>