|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
How to download a file from the Internet without the use of plug-ins ??
How to download a file from the Internet without the use of plug-ins ?
Is it possible to use this function URLDownloadToFile () ? How to do it? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You need the system plugin to call Windows functions...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Try this:
Quote:
|
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You wanted to do it without plugins and then you post some code where you are using a plugin!
Why not use one of the downloader plugins? IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Anders
I am interested - how to use the function URLDownloadToFile. Is it so difficult to help ?.. |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
What is wrong with nsisDL and InetC?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
https://www.virustotal.com/ru/file/5...e4e8/analysis/
WS.Reputation.1 | Symantec I understand - triggering false. But you can not work .... On nsisdl.dll not find any working links ... |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
NSIDdl is shipped with NSIS. If you did a full install, you already have it.
|
|
|
|
|
|
#9 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
INetC is no longer detected by Symantec and I submitted a false positive to TrendMicro, the problem should go away soon...
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Anders
Thank you very much! |
|
|
|
|
|
#11 | |
|
Junior Member
Join Date: Feb 2014
Posts: 4
|
Hello,
I am new to using the NSIS installer. My NSIS script creates the installer without any issues but a software download that it tries to do via the nsisdl plugin fails. This happens at the beginning of the installation process. The rest of the process works fine. I can download this external software (.exe) via the URL if I use it in my web browser but not within the NSIS installer. I use the statement: Quote:
This is a repeat post because I need an answer to this soon. If anyone has information about the proper syntax for using the nsisdl plugin or has experienced this before while attempting to download from a url, please do let me know. Thanks. |
|
|
|
|
|
|
#12 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
There is no url there, just the string "url"...
Next time don't ask the same question in several threads, it is very rude. IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#13 | |
|
Junior Member
Join Date: Feb 2014
Posts: 4
|
Re: Using nsisdl to download from url
Hello,
First of all, sorry for posting the question in multiple places. Won't happen again. Secondly, the code I showed in my earlier post was an example. My actual script has a valid url (where the string "url" is shown in the earlier example) and the $INSTALL_EXE_NAME is the name of the location where to put it (the .exe). Some part of the script is shown below: Quote:
Kindly let me know what you think. Thanks. Last edited by AjitPS; 6th February 2014 at 16:54. Reason: minor edit |
|
|
|
|
|
|
#14 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Do you have AntiVirus installed?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Feb 2014
Posts: 4
|
Hi Anders,
Yes, I have Norton AntiVirus installed. However, the installation from the url used to work without problems (with the AntiVirus) until 4 days ago. Now, it fails immediately after clicking "Yes" to the installation, shown in the script I mentioned above. |
|
|
|
|
|
#16 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
What is the value of ${INSTALL_EXE_NAME}?
What error does inetc report (check the value on the stack)? Stu |
|
|
|
|
|
#17 |
|
Junior Member
Join Date: Sep 2012
Posts: 8
|
For the OS's that support it:
nsExec::ExecToStack `"powershell.exe" -inputformat none -Command "$wc=New-Object system.Net.WebClient;$wc.downloadFile('http://someurl.com/file.exe','$INSTDIR\file.exe')"` Use the plugins, they work well. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|