1

I'm writing a Web Installer using WiX technology. Using following code I've successfully created and tested a simple installer that downloads MSI package from server:

private void OnResolveSource(object sender, ResolveSourceEventArgs e)
    {
        try
        {                
            if (!File.Exists(e.LocalSource) && !string.IsNullOrEmpty(e.DownloadSource))
                e.Result = Result.Download;
        }
        catch (System.Exception ex)
        {
            MessageBox.Show("exception " + ex.Message);

        }
    }

<MsiPackage Compressed="no" DownloadUrl="https://some/DummyInstaller.msi" Name="DummyInstaller.msi"   SourceFile="..\DummyInstaller\bin\Debug\DummyInstaller.msi" Id="DummyInstallationPackageId" Cache="no"  >
    <Payload SourceFile="..\DummyInstaller\bin\Debug\cab1.cab" DownloadUrl="https://dummydomain.com/cab1.cab" Id="cab1.cab" Compressed="no" />
  </MsiPackage>

However, when I run setup under a proxy server which asks user to enter credentials before accessing the Internet, my web installer fails to download MSIs. Though installer works in following two cases:

  1. If proxy server is using computer default credentials
  2. Or, If I go to IE and enter valid credentials when it asks me to, before accessing any website.

Question: Does Wix Framework allows developers to make proxy aware installers, so that installer itself ask for credentials that are required by Proxy server?

Note: Below is the error message found logs when installer fails: Error 0x80070005: Failed attempt to download URL...

Azaz ul Haq
  • 1,635
  • 2
  • 18
  • 46
  • Did you find a resolution to this issue? We've just hit the same problem. – James Bateson Apr 04 '17 at 10:48
  • Not yet @JamesBateson. Will post the answer as soon as I find it. Though for now it's not a priority task for me since most of our users use proxy servers which requires default credentials. – Azaz ul Haq Apr 04 '17 at 13:40

0 Answers0