I need NSIS script witch download file from the internet and execute it.
I’ve read many examples but I still don’t understand how to do it. For example
NSISdl::download http://www.domain.com/file localfile.exe
Pop $R0 ;Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Download Failed: $R0"
Quit
$R0 contains information about installation process (“cancel” or “success”). But I don’t understand what the “localfile.exe” is?
In what part of program I need write this code(section or function)?
localfile.exe is the path on the local system where you want to save the content you are downloading: