- NSIS Discussion
- inetc plugin not working
Archive: inetc plugin not working
mario_tiska
13th July 2006 23:30 UTC
inetc plugin not working
i just updated my version of nsis form 2.16 to 2.18 and i dont know why i cant get inetc to download simple files.
it used to work perfectly i even went back to 2.16 and nothing happened. i keep getting the "File Open Error", i know the file is there and the address is good.
whats really annoying is that im using exactly the SAME code that used to work before updating nsis.
help, anybody?
Afrow UK
13th July 2006 23:49 UTC
It would help if you posted the code.
-Stu
mario_tiska
13th July 2006 23:54 UTC
here goes...
i guess yo can change the inetc::get parameters to any file instead of the variables set, i did it but it didnt do anything different.
Afrow UK
13th July 2006 23:56 UTC
Make sure you put /END on the end of the plugin call after all other parameters.
-Stu
mario_tiska
14th July 2006 00:00 UTC
thx!! at least i got a different error message now. working on it right now.
mario_tiska
14th July 2006 00:18 UTC
nope. it wasnt that, i checked out the example thats originaly packed with the plugin, tested it and it didnt work. so im guessing that something is wrong on my machine.
im attaching the plugin and the example script.
Takhir
14th July 2006 07:50 UTC
dll version is latest. Retested on XP / LAN - OK. 2003 Server LAN + Dial-up - OK. What about XP firewall settings on your comp?
mario_tiska
14th July 2006 15:13 UTC
everything is smooth now, after reinstalling nsis, pushing some buttons and rebooting a dozen times something finaly did the trick. thx!
Afrow UK
14th July 2006 16:01 UTC
That is strange!
I have had that error myself though, but it was when I was missing the /END. Basically the plugin takes values from the stack and interprets them as download URL's. /END will stop it parsing the NSIS stack for more parameters.
-Stu
Takhir
14th July 2006 16:04 UTC
kichik asked for multiple files download, but I am not sure this is a good feature. A bit faster very seldom and lot of troubles for all other users...
mario_tiska
14th July 2006 16:49 UTC
i just noticed that NOT using the silent mode made all the difference.
the problem wasn't updating nsis, it was updating inetc. i cheked out the change log in the source code for inetc and as i expected silent mode has recent changes. am i the only one having problems with silent mode?
mario_tiska
15th July 2006 17:36 UTC
Takhir, here is inetc.debug.log.
Takhir
15th July 2006 19:24 UTC
plug-in exited with code=File Open Error, in most cases this is result of messed parameters in the command line. Can you attach script that creates download problem with silent mode enabled - debug log shows NOT silent mode. You wrote above that silent mode is error source.
mario_tiska
17th July 2006 15:36 UTC
maybe i didnt make my self clear. the problem comes when i use silent mode. if i use something else (for example: caption or banner), there is no problem, no file open error.
here is the .nsi file and the debug log.
Takhir
17th July 2006 17:44 UTC
Last Inetc build has a bit changed parameters format, /silent comes without additional text http://nsis.sourceforge.net/Inetc_plug-in :)
Your code should work with additional /caption key word after /silent or without caption text at all (/silent "http://...)
mario_tiska
17th July 2006 18:10 UTC
:D thanks a lot!!
great job. nice plugin.
Takhir
17th July 2006 18:18 UTC
I forgot to note - use DetailPrint before plug-in call if you want set 'progress text' in the silent mode.
Xokar
10th July 2008 22:05 UTC
Can someone post an example of the working /SILENT code, because I can't for the life of me get this working!
Here's my code:
Inetc::get /SILENT "ftp://$Username:$Password@$Server/../../var/file.xml" "$TEMP\file.xml" /END
Takhir
11th July 2008 08:18 UTC
Hm.. This works:
Name "Inetc ftp authentication Test"
OutFile "ftp_gnu.exe"
!include "MUI.nsh"
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-colorful.ico"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "Dummy Section" SecDummy
inetc::get /silent "ftp://anonymous:a.b.com@ftp.gnu.org/MISSING-FILES" "$EXEDIR\MISSING-FILES" /end
Pop $0 # return value = exit code, "OK" if OK
MessageBox MB_OK "Download Status: $0"
SectionEnd
Xokar
11th July 2008 10:40 UTC
Ah I think I see the problem now, it's writing the file, but doesn't ever stop. I end up with a file that has the same text repeated over and over again until I kill the program.
Is there a newer release of Inetc?
Takhir
11th July 2008 10:43 UTC
May 21, 2008 is latest http://nsis.sourceforge.net/File:Inetc.zip
Xokar
11th July 2008 15:38 UTC
Thanks!
The version created on 4 May 2008 works perfectly.
Takhir
14th July 2008 13:31 UTC
It was May 21 version with endless download, aren't it? If so, what ftp server you used ? Can I reproduces your situation?
Xokar
15th July 2008 08:53 UTC
Yep, it was the latest version that I had problems with.
I was connecting to a Solaris 10 UNIX FTP server, but it's not online so I'm not sure how you'll reproduce it.
justme123
13th July 2009 11:32 UTC
Hi,
like mario tiska i've got an error when using the /SILENT option with inetc::post
this code fails with 'Connection error'
inetc::post /SILENT "email=$emailAddress" "http://xxx" "$EXEDIR\out.htm" /END
this works but flashes 'connecting' and progressbar for a second
inetc::post "email=$emailAddress" "http://xxx" "$EXEDIR\out.htm" /END
this works but uses get
inetc::get /SILENT "http://xxx?email=$emailAddress" "$EXEDIR\email.htm" /END
fwiw, post also fails with /NOCANCEL and/or /TIMEOUT.
Versions:
nsis: 2.45
os: win XP sp3
inetc: latest (inetc.dll created 2008-09-01)
how do you use post together with /SILENT?
regards, justme123
Takhir
13th July 2009 12:50 UTC
http://nsis.sourceforge.net/Inetc_plug-in
inetc::post TEXT2POST [other_parameters, for example /SILENT] URL FILE [/END]
justme123
13th July 2009 15:26 UTC
*doh* thank you!