Inno Setup: Install file from Internet

后端 未结 3 506
别那么骄傲
别那么骄傲 2021-02-05 15:28

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 requir

相关标签:
3条回答
  • 2021-02-05 15:57

    Found on Inno 3rd Party is one very similar in scope and style to the Inno Download Plugin, DWinsHs.
    Included with an easy and intuitive chm file which requires unblocking to view.

    0 讨论(0)
  • 2021-02-05 16:05

    Yes, there is a library called InnoTools Downloader which has samples that do pretty much this. They can be conditioned on anything you want using normal Inno code.

    0 讨论(0)
  • 2021-02-05 16:09

    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.
    
    0 讨论(0)
提交回复
热议问题