NSIs downloading files using Urldownloadtofile

Source: Internet
Author: User

In Urlmon.dll there is a function called Urldownloadtofile, as the name implies, is a download file of things, we do online installation or many other times, often need to download some small files in advance to configure the current program will be installed, in this situation to selectmen call download plugin is too cumbersome, It also increases the unnecessary volume, so using urldownloadtofile in this case is an ideal approach. Examples are as follows

!includeNsdialogs.nsh
XpstyleOn

OutFile"Test.exe"
Name"Test"
Section"Test"
System::call' Urlmon.dll::urldownloadtofilea (I0, T "Http://www.nsisfans.com/template/wxd_jdbbs/wxd_img/logo.png", T "Nsis.png", I0,I0) I.s '
Pop$r 0
${if} $r 0= 0
MessageBoxMB_OK' Download succeeded '
${else}
MessageBoxMB_OK' Download failed '
${endif}
Sectionend

NSIs downloading files using Urldownloadtofile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.