Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: Install file from Internet

I am using Inno Setup to distribute my application. Is it possible to check in Inno Script for a particular condition and download and install some file from internet if required.

like image 305
Ashish Sharma Avatar asked Jul 31 '11 03:07

Ashish Sharma


People also ask

How do I add a folder to Inno?

Simply include the recursesubdirs flag to your [Files] section entry. The help says about this flag the following: Instructs the compiler or Setup to also search for the Source filename/wildcard in subdirectories under the Source directory.

How do I install Inno installer?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

Can Inno Setup create MSI?

Inno Setup does not support creating MSI installers.

What is Inno download plugin?

IDP is a plugin for Inno Setup, which allows you to download files as part of your installation. Website. Downloads. Source code repository.


1 Answers

Inno Download Plugin by Mitrich Software.

  • It's an InnoSetup script and DLL, which allows you to download files as part of your installation.
  • It supports FTP, HTTP and HTTPS.
  • It's kind of a drop-in replacement for InnoTools Downloader. Only few changes required.
  • It brings a decent download display and HTTPS and Mirror(s) support.

Example:

#include <idp.iss>

[Files]
Source: "{tmp}\file.zip"; DestDir: "{app}"; Flags: external; ExternalSize: 1048576

[Code]
procedure InitializeWizard();
begin
  idpAddFileSize('http://127.0.0.1/file.zip', ExpandConstant('{tmp}\file.zip'), 1048576);

  idpDownloadAfter(wpReady);
end.
like image 57
Jens A. Koch Avatar answered Nov 14 '22 21:11

Jens A. Koch