WGET + WINRAR
This is the strategy: use wget to download the file, use winrar to package the wget and dependencies files and to call wget after the extraction.
- Download wget and the dependencies from here, GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.
This is THE tool if you need to download big files.
- Copy the files inside a directory , i.e. : “Install”
- Install WinRar
- Create a new WinRar Archive with these files and settings :
- Click on the SFX icon in order to create a SelfExtracting archive, and click OK:
- Change the Setup command, we need to instruct wget on the file we need to download:
- the –c parameter continues getting a partially-downloaded file
- the –O parameter (uppercase!) sets the path and the file name of the downloaded file.
- Run the program and the download will start :
- If you close and re-launch the program the download will resume gracefully
- Use WinRar and not 7Zip for the auto-extracting executable because 7zip doesn’t support windows variables like “%USERPROFILE%”.
This is important if you need to control where is downloaded the file.
- This solution works well if you need to download from the web really huge files : virtual machine images or big archives.