title: Inno Setup Download file from location based on user input
body: <p>I wondering how send input from <code>UserPage</code> to <code>idpAddFile</code> to download it by <a href="https://mitrichsoftware.wordpress.com/inno-setup-tools/inno-download-plugin/" rel="nofollow noreferrer">Inno Download Plugin</a>. After download I would like to use that zip and install app.</p>
  
  <p>For now I have this:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>var
    UserPage: TInputQueryWizardPage;
  
  procedure InitializeWizard;
  begin
    {Page for input Version}
    UserPage := CreateInputQueryPage(wpWelcome,
      'Number of Version', 'example : 1.8.20',
      'Program will download your input');
    UserPage.Add('Version:', False);
    UserPage.Values[0] := GetPreviousData('Version', '1.8.20');
  
    {Download file from input}
    idpAddFile(
      '127.0.0.1/repository/GU/my-apps/app.zip/{input}/ia-client.zip-{input}.zip',
      ExpandConstant('{tmp}\{input}.zip}'));
    idpDownloadAfter(wpReady);
  end;
  </code></pre>
  
  <p>thanks for suggestion and help</p>