title: WiX ExePackage: Failed to send request to URL
body: <p>Using WiX Burn v3.7.1224, I failed acquiring a remote payload through ExePackage. I usually succeed with similar ExePackage elements so I suppose the problem may be related to the specific URL I'm trying to download.</p>
  
  <p>This specific "exe URL" is <a href="http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe" rel="nofollow">http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe</a></p>
  
  <p>To be precise: the interactive page is at <a href="http://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.02.02.exe" rel="nofollow">http://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.02.02.exe</a> and clicking there on the download anchor "seems" to result in the direct "exe URL" listed above. I say "seems" because I had to dive into the page source code to find out the final "exe URL", and this may be a problem.</p>
  
  <p>Here is the WiX fragment of interest:</p>
  
  <pre><code>&lt;Fragment&gt;
      &lt;util:RegistrySearch Id="TesseractLookup"
                           Variable="TESSERACT_REGVALUE"
                           Root="HKLM"
                           Key="SOFTWARE\Tesseract-OCR" 
                           Value="CurrentVersion" /&gt;   
  
      &lt;PackageGroup Id="Tesseract"&gt;
          &lt;ExePackage Compressed="no" 
                      PerMachine="yes" 
                      Permanent="yes" 
                      Vital="yes" 
                      Name="redist\tesseract-ocr-setup-3.02.02.exe"                    
                      InstallCondition="NOT TESSERACT_REGVALUE"
                      DetectCondition="TESSERACT_REGVALUE"
                      DownloadUrl="http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe"&gt;
  
              &lt;RemotePayload Description="Tesseract-OCR - open source OCR engine" 
                             Hash="35C61604AAAC961C24CD28F959566B2E39244541" 
                             ProductName="Tesseract-OCR" 
                             Size="13525781"
                             Version="3.02.02.0" /&gt;
          &lt;/ExePackage&gt;
      &lt;/PackageGroup&gt;        
  &lt;/Fragment&gt;
  </code></pre>
  
  <p>I succeeded with the browsers I tried (Firefox and Internet Explorer) and with a basic "wget" command as well, in a matter of seconds. But failed with Burn.
  All were provided with the same "exe URL".
  I even tried with disabled firewall and anti-virus softwares just in case, but to no avail.</p>
  
  <p>Do you have any hint about what might be happening?</p>
  
  <p>Here are the relevant lines from the install log:</p>
  
  <pre><code>[27F8:1FE8][2013-03-07T08:36:46]w343: Prompt for source of package: tesseract_ocr_setup_3.02.02.exe, payload: tesseract_ocr_setup_3.02.02.exe, path: D:\soft\audiveris\dist\redist\tesseract-ocr-setup-3.02.02.exe
  [27F8:1FE8][2013-03-07T08:36:46]i338: Acquiring package: tesseract_ocr_setup_3.02.02.exe, payload: tesseract_ocr_setup_3.02.02.exe, download from: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe
  [27F8:1FE8][2013-03-07T08:36:47]e000: Error 0x80070002: Failed to send request to URL: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe
  [27F8:1FE8][2013-03-07T08:36:47]e000: Error 0x80070002: Failed to connect to URL: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe
  [27F8:1FE8][2013-03-07T08:36:47]e000: Error 0x80070002: Failed to get size and time for URL: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe
  [27F8:1FE8][2013-03-07T08:36:47]e000: Error 0x80070002: Failed attempt to download URL: 'http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe' to: 'C:\Users\herve\AppData\Local\Temp\{7715fbb6-5bc5-442f-86a0-655fa082bd7d}\tesseract_ocr_setup_3.02.02.exe'
  [27F8:1FE8][2013-03-07T08:36:47]e000: Error 0x80070002: Failed to acquire payload from: 'http://tesseract-ocr.googlecode.com/files/tesseract-ocr-setup-3.02.02.exe' to working path: 'C:\Users\herve\AppData\Local\Temp\{7715fbb6-5bc5-442f-86a0-655fa082bd7d}\tesseract_ocr_setup_3.02.02.exe'
  </code></pre>