IDP is a plugin for Inno Setup, which allows you to download files as part of your installation.
Features:
- Supports Unicode & ANSI Inno Setup versions
- FTP, HTTP and HTTPS protocols
- Configurable proxy settings
- Multiple languages
- Free and open source under Zlib license
Supported languages:
- Belarusian
- Brazilian Portuguese
- Bulgarian
- Chinese (simplified)
- Czech
- English
- Finnish
- French
- German
- Hungarian
- Italian
- Polish
- Russian
- Slovak
- Spanish
Basic example:
#include <idp.iss> [Files] Source: "{tmp}\file1.xyz"; DestDir: "{app}"; Flags: external; ExternalSize: 1048576 Source: "{tmp}\file2.xyz"; DestDir: "{app}"; Flags: external; ExternalSize: 1048576 Source: "{tmp}\file3.xyz"; DestDir: "{app}"; Flags: external; ExternalSize: 1048576 [Icons] Name: "{group}\{cm:UninstallProgram,My Program}"; Filename: "{uninstallexe}" [Code] procedure InitializeWizard(); begin idpAddFileSize('http://127.0.0.1/file1.xyz', ExpandConstant('{tmp}\file1.xyz'), 1048576); idpAddFileSize('http://127.0.0.1/file2.xyz', ExpandConstant('{tmp}\file2.xyz'), 1048576); idpAddFileSize('http://127.0.0.1/file3.xyz', ExpandConstant('{tmp}\file3.xyz'), 1048576); idpDownloadAfter(wpReady); end.
Download (Latest version is 1.5.1 – 18 Apr 2016):
- Download version 1.5.1 [BitBucket]
- Download version 1.5.1 [Google Drive]
- Download other releases [Google Drive]
Links:
Can this plugin download a ZIP file and then extract to {app}, if so then how? Thanks.
Did you find a solution for this?
This plugin is capable of downloading any file (zip or any format). But you need to use the unzip tool to extract the file after downloading.
Following link gives you an example on how to use the unzip functionality.
Приветствую! Советую не тянуть и экспортировать свой проект с закрывающегося Google Code на GitHub, а то его уже трижды экспортировали разные люди и кодовая база множится бесконтрольно.
Перенес на https://bitbucket.org/mitrich_k/inno-download-plugin (на GitHub mercurial’a нет.
(у меня долгое время не было возможности им вообще заниматься, теперь есть)
Pingback: [ASK] programming - How can I use a SharePoint Site (365) as the source for Inno Setup files? | Some Piece of Information
Приветствую. У меня небольшая проблема с загрузкой файла. Файл качается нормально, но завершение загрузки занимает долгое время, в результате чего часто вылетает ошибка “Загрузка не удалась: Операция прервана по таймауту”. Где можно увеличить время ожидание до появления ошибки?
How to take the installation forward or cancel it the download fails ?
I’m using idpaddfile, idpsetlogin and idpDownloadAfter functions for downloading a file by authentication.
I cannot cancel the installation or click on the next button if the download fails, because those buttons are invisible in my installer.
Any help would be appreciated 🙂
Does this lib have a function available to post data to the server and get a result back?
My old script (with the older sherlock solution which only supports http) works as follow:
1. Get a json file from server that contains the sha1 strings for each file.
2. Determine changes in the files using the SHA comparison and send the filenames of the changed files back to the server (in one request). The response of that request is a zip that contains those changed files. Is there a way to do this with your lib? this would be awesome!
http://wdtprs.com/blog/
Pingback: Inno Setup で ネットワークインストーラを作成する方法 | ykyukiのブログ
When I use this plug-in in my Inno script, after the installer is done and every thing shuts down, there is a registry entry created for this plug-in that references “unins000” and as such it shows up as a registered program in the windows “Uninstall or change a program”. When you attempt to uninstall it, you get an uninstall error pointing to “…\unins000.exe”…which doesn’t exist. How can I prevent the plug-in from doing this ?