title: Installing ClickOnce from several URLs
body: <p>I have a ClickOnce application that needs to be setup from several <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator" rel="nofollow noreferrer">URLs</a>. For example that I need it to be installed from the following URLs:</p>
  <pre><code>http://mycompany.com//url1
  http://mycompany.com//url2
  </code></pre>
  <p>I publish it based on installing from <code>url1</code> (publish wizard -&gt; page two -&gt; from web specify the URL: url1), but when I try to copy it to <code>url2</code>, it still looks at <code>url1</code>.</p>
  <p>To do this, I set the installation folder URL to</p>
  <pre><code>http://mycompany.com//url1
  </code></pre>
  <p>and checked <em>Exclude deployment provider URL</em> and published the application to a directory on my pc and then I copied it to the server.</p>
  <p>How can I force it to use <code>url2</code> when the installation is started from a index.html on <code>url2</code>?</p>
  <h2>Edit1</h2>
  <p>I did several tests to see why what is happening.</p>
  <p>The publish wizard creates a HTML file called <code>index.htm</code>.</p>
  <p>In this HTML file, there is a button that has a reference to setup.exe. When this application runs, it looks for .application from <code>url1</code>. I checked and there is no reference to <code>url1</code> in the HTML file, but setup.exe looks at .application from <code>url1</code>.</p>
  <p>If I delete all files from <code>url1</code>, but all of them exist on <code>url2</code>, the application setup fails by an error that it can not find http:\mycompany.com\url1\myapplication.application.</p>
  <p>If I create a new version of the application and upload it to <code>url1</code>, then go <code>url2</code> and try to install it, the newer application is installed, but no update happens.</p>
  <p>My settings are:</p>
  <pre><code>Options:
    Deployment
        Automatically generate deployment... Set
        Open deployment web                  Set
        Use .dep file ex                     Not set
        For CD installation, aut             Set
        Verify files uploaded to a web sever Not set
   Manifests
        Block application from               Not set
        Allow URL parameters to pass         Not set
        Use application manifest for trust   Not set
        Exclude deployment provider URL      Set
        Create desktop shortcut              Set
  Publish location
          publish/
  Installation folder URL
          http://MyCompany.com/url1
  This application is available offline      Set
  
  Publish wizard
       How the user install the application:
        From a web site URL =url1
        Yes this application is available online and off line set.
  </code></pre>