title: Module failed to register HRESULT / Error 1001
body: <p><strong>My first question is about the error below :</strong></p>
  
  <p><em>Module [Path/Name of dll].dll failed to register. HRESULT -2147024769. Contact your support personnel.</em></p>
  
  <p>I can continue the installation but i want to get rid of this error if possible.</p>
  
  <p><strong>The second question is about the following error :</strong></p>
  
  <p><em>Error 1001. Exception occured when initializing the installation.
  System.IO.FileNotFoundException: could not load file or assembly 'file:///C:\Windows\SysWOW64\files' or one of it's dependencies. The system cannot find the file specified.</em></p>
  
  <p>I saw in different site and thread that the cause was the custom Action (in the value : <code>/target=”[TARGETDIR]”</code> -> <code>/target=”[TARGETDIR]\”</code>) but I can't found where is the error in my custom action. Here are the custom action realized using Designer for Wix Toolset :</p>
  
  <pre><code>&lt;CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR" Value="[ProgramFilesFolder][Manufacturer]\[ProductName]" Execute="firstSequence" /&gt;
  &lt;CustomAction Id="_FB3FF635_EF79_4863_91BD_70A0A11955B2.Uninstall" Execute="deferred" BinaryKey="InstallUtil" DllEntry="ManagedInstall" adx:VSName="Primary Output from Project" /&gt;
  &lt;CustomAction Id="_FB3FF635_EF79_4863_91BD_70A0A11955B2.Uninstall.SetProperty" Property="_FB3FF635_EF79_4863_91BD_70A0A11955B2.Uninstall" Value="/installtype=notransaction /action=uninstall /LogFile= /targ=&amp;quot;[TARGETDIR]\&amp;quot; /usr=[ALLUSERS] /usr2=[MSIINSTALLPERUSER] /CommonProjAppData=&amp;quot;[PROJCOMMONDATA]\&amp;quot; &amp;quot;[#_F521D169_ECD0_42B5_87F7_C2D8B6F9CA54]&amp;quot; &amp;quot;[VSDFxConfigFile]&amp;quot;" adx:VSName="Primary Output from Project" /&gt;
  &lt;CustomAction Id="_BE73DAD9_3524_4376_B45C_148B5871465B.Install" Execute="deferred" BinaryKey="InstallUtil" DllEntry="ManagedInstall" adx:VSName="Primary Output from Project" /&gt;
  &lt;CustomAction Id="_BE73DAD9_3524_4376_B45C_148B5871465B.Install.SetProperty" Property="_BE73DAD9_3524_4376_B45C_148B5871465B.Install" Value="/installtype=notransaction /action=install /LogFile= /targ=&amp;quot;[TARGETDIR]\&amp;quot; /usr=[ALLUSERS] /usr2=[MSIINSTALLPERUSER] /CommonProjAppData=&amp;quot;[PROJCOMMONDATA]\&amp;quot; &amp;quot;[#_F521D169_ECD0_42B5_87F7_C2D8B6F9CA54]&amp;quot; &amp;quot;[VSDFxConfigFile]&amp;quot;" adx:VSName="Primary Output from Project" /&gt;
  &lt;CustomAction Id="CA_CreateConfig" BinaryKey="ADXDPCADLL" DllEntry="GetConfig" /&gt;
  </code></pre>
  
  <p>Thanks for helping.</p>