title: Running a program after it is downloaded in Code section in Inno Setup
body: <p>How do I run an application I have downloaded over the Internet, in the code section using, and also wait for that application to finish running. I have, using InnoTools downloader, downloaded these two files and I want to, after the second one is done downloading to run that download, or <code>jdk-8u111-windows-x64.exe</code>, then continue the installation.</p>
  
  <pre class="lang-pascal prettyprint-override"><code>[Code] 
  
  procedure InitializeWizard(); 
  begin 
       ITD_Init;
  
       ITD_AddFile('http://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.0.M13/bin/apache-tomcat-9.0.0.M13-windows-x64.zip', expandconstant('{tmp}\apache-tomcat-9.0.0.M13-windows-x64.zip'));
  
       ITD_DownloadAfter(1); 
  
       ITD_AddFile('http://files.downloadnow-1.com/s/software/15/62/36/39/jdk-8u111-windows-x64.exe?token=1479511171_b51e94edd4e002c94fd60a570a7dd270&amp;fileName=jdk-8u111-windows-x64.exe',expandconstant('{tmp}\jdk-8u111-windows-x64.exe'));
  
       ITD_DownloadAfter(2);       
  end;
  </code></pre>