Old 26th April 2005, 12:53   #81
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Thanks, I'll try it.

-Stu
Afrow UK is offline   Reply With Quote
Old 6th May 2005, 17:59   #82
tbrandner
Junior Member
 
Join Date: May 2005
Posts: 1
Long 50 second delay after download

Wow, inetload is a great plug-in!

I have a packaged installer that grabs a file over the 'net, and it's working great aside from a small problem that happens after a successful download.

After a successful download, there is about a 50 second delay before the installer continues. I've put message box popups at each step of the installer, and the delay is immediately after the inetload:load command.

Any idea where this delay is coming from? It doesn't seem to have anything to do with the size of the download...?

Thanks,

Tony
tbrandner is offline   Reply With Quote
Old 10th May 2005, 19:14   #83
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Now I am online again and I'll check all problems tomorrow.
tbrandner: I saw delay on the plug-in exit (cannot remember precisely when & where), but this happened after last plug-in operator (probably in the NSIS code). Can you give me script sample?
Afrow UK: last version worked with my office 8 Mbit/sec line. I can test script sample if required. And I need to understand bittorent protocol first, I'll try
Takhir is offline   Reply With Quote
Old 10th May 2005, 20:43   #84
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Thanks Takhir. If you can get BitTorrent to work, that would be amazing!

-Stu
Afrow UK is offline   Reply With Quote
Old 11th May 2005, 12:23   #85
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It's ok Takhir, thanks to immadster the author of XBTT http://sourceforge.net/projects/xbtt/ has agreed to make a BitTorrent plugin for NSIS.

Not sure exactly how long it will take though.

-Stu
Afrow UK is offline   Reply With Quote
Old 12th May 2005, 08:59   #86
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
i'm just switched from NSISdl to InetLoad, as NSISdl does not support URL encoded login/password. i'm using a function that reads a set of URLs from a text-file and downloads one file after another. i experienced that InetLoad uses to crashes my installer quite often, without a recognizable pattern.

edit: this only seems to happen when running InetLoad in a loop. when i downloaded 10 files with 10 InetLoad commands i experience no problems. any fix or workaround?
Yathosho is offline   Reply With Quote
Old 12th May 2005, 10:38   #87
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Yathosho: This may be blank space in the URL or \r - \n at the end of line. I can fix, but I'd like to understand the problem first. Script sample?
Afrow UK: Just tested SP download 130 MB - 13 sec in the 100 Mb LAN.

Last edited by Takhir; 12th May 2005 at 10:57.
Takhir is offline   Reply With Quote
Old 12th May 2005, 11:09   #88
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Originally posted by Afrow UK
I was wondering if you could implement the NXS progress banner into InetLoad, so we could have just a simple progress bar when downloading small files between pages.


Following "banner" mode has not Cancel button (but Esc key works):

/BANNER CAPTION TEXT

For example:
InetLoad::load /banner "Cameron Diaz" "coming soon" "ftp://...."

I cannot remeber right now why I removed x button from the banner dialog, but I can put it back
Takhir is offline   Reply With Quote
Old 12th May 2005, 11:25   #89
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
afrow: could this be a Qos related problem?

takhir: send you a private message!
Yathosho is offline   Reply With Quote
Old 12th May 2005, 16:40   #90
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Yathosho I couldn't find anything related on that link...

And thanks for the banner Takhir, I'll have a look at that now.

Edit: Oh it doesn't have a progress bar though. I've already got a banner showing but a progress bar would be nice too.

-Stu
Afrow UK is offline   Reply With Quote
Old 17th May 2005, 23:56   #91
Wishdoctor
Junior Member
 
Join Date: May 2005
Posts: 1
Assistance needed

Hello all,

I am a poor downtrodden Senior Tech (well..thats how I feel at the moment anyway). Have been using NSIS for +-8 months to convert those pesky batch files to something even my junior engineers couldn't mess up.. then came SALESmen...who saw what I could do and asked a favour...could I create an installer for an offering that installs multiple 3rd party apps silently...no problem I say...and I get it working...THEN they change the goalposts with a live demo ...TOMORROW!!!
Just had to tell the story as I feel a lot of techs and devs will have had the same experience...anyway...goalpost change was to download the installers from an FTP site rather than sending out disks to the client...great, but there are multiple files in the ftp locations.

And here is the question...maybe I am just tired and cranky...inetload is excellent but I can't find a way to download all the files in an FTP location without specifying them individually...please tell me I am missing something and it is easy - either way, I think I will go and apply a hammer to the frontal lobe while I wait for a response. The way my brain is working, some example basic code would help.
Thanks
Wishdoctor is offline   Reply With Quote
Old 18th May 2005, 06:12   #92
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Afrow UK: progress bar appears on the banner if file size info is available. May not appera on the short files (<8 kB). Known problem - this is not 'cross page' banner (like nxs is), plug-in returns when download is complitted only (or error occure).

Wishdoctor:
> TOMORROW!!!
Not implemented
This require ftp 'mput' command, but I don't know (right now) how to handle ftp control and data connections in this case. Needs some investigation.
You can also pack server files to the single archive file and use one of NSIS decompression plug-ins.
Takhir is offline   Reply With Quote
Old 24th May 2005, 14:23   #93
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Don't know if this is a bug or by design but calling the plugin from a Section in /silent mode still brings up "InetLoad plugin" in the details text label at the top.

I'd like to display "Downloading [file]..." (w/ DetailPrint) there instead which just gets overwritten.

-Stu
Afrow UK is offline   Reply With Quote
Old 25th May 2005, 05:51   #94
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
This is option. You can change this with following code beginning line 832 of InetLoad.cpp
code:

if(hwndParent != NULL &&
(childwnd = FindWindowEx(hwndParent, NULL, "#32770", NULL)) != NULL)
{
if(!silent) SetDlgItemText(childwnd, 1006, PLUGIN_NAME);
}
else InitCommonControls();


And rebuild project (Release).
Idea was to left "InetLoad" word somewhere May be I'll remove it in the next version (with POST option support, if it will be successfully tested not on my comp only).
Takhir is offline   Reply With Quote
Old 25th May 2005, 10:15   #95
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Umm I'm using Visual C++ 2003 and I get these errors on compile:
d:\Program Files\NSIS\Contrib\inetload\InetLoad.cpp(48): error C2365: 'FtpCommandA' : redefinition; previous definition was a 'function'
d:\Program Files\NSIS\Contrib\inetload\InetLoad.cpp(521): error C2659: '=' : overloaded function as left operand

-Stu
Afrow UK is offline   Reply With Quote
Old 25th May 2005, 18:46   #96
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Special build - text for 1006 control as /silent 'some text' option. It looks like NSIS cleans this field before plug-in call, so you cannot use script to set text. Usage sample in the attached file.
Attached Files
File Type: zip inetsilent.zip (9.0 KB, 761 views)
Takhir is offline   Reply With Quote
Old 25th May 2005, 20:36   #97
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Mmm I tried that DLL and I think it's taking 'some text' as a download URL.

If I use /SILENT "blah" [url] download fails but if I use /SILENT [url] it does not fail.

-Stu
Afrow UK is offline   Reply With Quote
Old 26th May 2005, 15:34   #98
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Sorry, wrong file
Attached Files
File Type: zip inetsilent.zip (9.0 KB, 680 views)
Takhir is offline   Reply With Quote
Old 27th May 2005, 13:56   #99
MichaelFlya
Member
 
MichaelFlya's Avatar
 
Join Date: May 2005
Location: U.S.A.
Posts: 91
I need this To Work With InetLoad.

code:

Pop $0

MessageBox MB_YESNOCANCEL "Message" IDYES LABEL1 IDNO LABLE2
Quit



What do I Say After Pop $0 to Get it to
Pass The MessageBox and Quit Code if
Successful?

-MichaelFlya-
MichaelFlya is offline   Reply With Quote
Old 27th May 2005, 14:34   #100
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Pop $R0
StrCmp $R0 ok +3
MessageBox MB_YESNOCANCEL "Message"
Quit

-Stu
Afrow UK is offline   Reply With Quote
Old 27th May 2005, 15:05   #101
MichaelFlya
Member
 
MichaelFlya's Avatar
 
Join Date: May 2005
Location: U.S.A.
Posts: 91
Thx Works Well !!

-MichaelFlya-
MichaelFlya is offline   Reply With Quote
Old 6th June 2005, 08:47   #102
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Updated - not skips current download if "Enter" key was pressed.
And /SILENT now with text parameter, use
/SILENT ""
to display default "InetLoad plug-in" in the 1006 control (install progress text on the top of the NSIS window).
Attached Files
File Type: zip inetload.zip (23.3 KB, 780 views)
Takhir is offline   Reply With Quote
Old 6th June 2005, 16:00   #103
MichaelFlya
Member
 
MichaelFlya's Avatar
 
Join Date: May 2005
Location: U.S.A.
Posts: 91
Great Thanks Takhir !!! "Enter" Button seems to no longer
be a problem.

(Please help me troubleshoot.)

While in /BANNER mode, on the Banner it will show what I
want, but above the loading bar it just shows "InetLoad
plug-in", I'd rather it be what I want.

I may be wrong, you may have put it in some how. It seems
you need one more text input for the dialog shown above
the details while in the Banner mode. like the Silent mode
now has. If you have it already how would you do it?

code:

InetLoad::load /BANNER "Displays on banner." "Displays on banner." "URL for file" "Directory for file"



You have two text fields available, can you add three?

I think it is "Set TEXT2DISPLAY to 1006 control". I don't
know how to set that manually. How would I?

-MichaelFlya-

Last edited by MichaelFlya; 6th June 2005 at 16:40.
MichaelFlya is offline   Reply With Quote
Old 6th June 2005, 17:03   #104
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
In the Banner or Popup modes this text appears on the background window (NSIS dialog), so user can see: 1) installer's Fileinst page; 2) files installation step - "InetLoad plug-in" text in the 1006 field; 3) Inet file download progress on the popup or banner window. In the NSISdl or Silent modes level (3) is absent and details can be moved to second level, but IMHO this is not realy need for Popup and Banner. And I'd like to left "InetLoad" text somewhere on the screen
It looks like installer (NSIS) clears this field before plug-in call, so it is not possible to set 1006 control text from script - it will be removed.
But, any case, thanks, I'll think about you idea
Takhir is offline   Reply With Quote
Old 6th June 2005, 17:53   #105
MichaelFlya
Member
 
MichaelFlya's Avatar
 
Join Date: May 2005
Location: U.S.A.
Posts: 91
Oh ok. It would be nice to say something besides InetLoad
the user doesn't need to see that. On long downloads it is
there for a long time. It is off topic for the installation.
Thank you very much for taking the time to respond.

Here is an idea that I would need somewhere down the line
and saves time. Your idea is to tell the plug-in to go to a
url then specify it's place on the hard drive to download to.
Then do it again for another file on the same line.

I think you should have another mode that allows you to
tell the plug-in to grab files from one url on the Internet
then without having to type the directory or url again just
specify the files.

so something like this:

code:

InetLoad::load /NewSwitch /ExistingSwitch "Text" "Text" "URL" "Directory to download to" "File_01" "File_02" "File_03" "File_04/Etc"



That way you do not have to say "URL for file"
or "Directory for file" again, over and over.

I know you can rewrite the name with a second field after
the file, but in this case it could just keep the same name.

Could make one more Switch for those who want to rename
like this:

code:

"File_01" "Rename" "File_02" "Rename" "File_03" "Rename" "File_04" "Rename/Etc"




-MichaelFlya-
MichaelFlya is offline   Reply With Quote
Old 13th June 2005, 21:03   #106
MuskieMikie
Junior Member
 
Join Date: Jun 2005
Posts: 1
I'm experiencing the 50 sec delay after inetload downloads the file. This only occurs when downloading from ftp. http is fine.

Section "MainSection" SEC01
SetOutPath $INSTDIR
InetLoad::load "ftp://ftpsdk:Rfloatpt@ftp.ati.com/AdbeRdr70_enu.exe" "AdbeRdr70_enu.exe"
ExecWait '"AdbeRdr70_enu.exe"'
SectionEnd
MuskieMikie is offline   Reply With Quote
Old 14th June 2005, 06:27   #107
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
This is second request with 50 sec delay problem, but I still cannot reproduce it. Right now I tested following code and Adobe installation started immediately after download was completed (12.8 MB ):
code:

Section "Dummy Section" SecDummy
SetOutPath $INSTDIR
InetLoad::load "ftp://ftpsdk:Rfloatpt@ftp.ati.com/AdbeRdr70_enu.exe" "AdbeRdr70_enu.exe" /end
ExecWait '"AdbeRdr70_enu.exe"'
SectionEnd

Takhir is offline   Reply With Quote
Old 21st June 2005, 15:51   #108
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
2 new options: /NOCANCEL and /NOPROXY
First option prevents download from being interupted by user (locks Esc, Alt-F4, Cancel handling).
Second - disables proxy settings for this connection (if any). InternetOpen() uses INTERNET_OPEN_TYPE_DIRECT instead of default INTERNET_OPEN_TYPE_PRECONFIG.
Attached Files
File Type: zip inetload.zip (30.0 KB, 877 views)
Takhir is offline   Reply With Quote
Old 21st June 2005, 16:54   #109
Mæster
Member
 
Join Date: Apr 2003
Location: Germany
Posts: 62
Send a message via ICQ to Mæster Send a message via AIM to Mæster
Quote:
InternetOpen() uses INTERNET_OPEN_TYPE_DIRECT instead of default INTERNET_OPEN_TYPE_PRECONFIG.
So this will bypass any proxy?
Mæster is offline   Reply With Quote
Old 21st June 2005, 17:24   #110
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Not tested, because I have not proxy at home , but looks simple, and MSDN says this flag "INTERNET_OPEN_TYPE_DIRECT - Resolves all host names locally."
"INTERNET_OPEN_TYPE_PRECONFIG - Retrieves the proxy or direct configuration from the registry."
BTW it is possible to disable proxy using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings ProxyEnable, but plug-in's parameter limits changes with this session only.
Takhir is offline   Reply With Quote
Old 21st June 2005, 18:03   #111
Mæster
Member
 
Join Date: Apr 2003
Location: Germany
Posts: 62
Send a message via ICQ to Mæster Send a message via AIM to Mæster
Quote:
"INTERNET_OPEN_TYPE_PRECONFIG - Retrieves the proxy or direct configuration from the registry."
BTW it is possible to disable proxy using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings ProxyEnable, but plug-in's parameter limits changes with this session only.
Seems, that all that stuff (only) deals with the internet explorer proxy settings. So if the proxy settings are not set within ie (registry) that probably wont work with other external proxies. But thats all theory, I dont have a proxy for myself - so I couldnt test it.

Because writing an Internet Updater with NSIS I am searching a long time for a nsisdl solution (or something similar) which can handle proxies which are not specified inside the ie settings (in the usually registry keys).

Regards,
Mæster.
Mæster is offline   Reply With Quote
Old 21st June 2005, 18:53   #112
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
InetLoad uses WinInet API, by default IE proxy settings will be used. But /PROXY "IP:PORT" option (string will be used as a part of INTERNET_PROXY_INFO structure) option can change proxy list for plug-in.
Takhir is offline   Reply With Quote
Old 25th June 2005, 02:53   #113
Megiddo_Guest
Guest
 
Posts: n/a
Can you make it so it won't take the focus ( comes to the front ) every time it downloads a file? I'm making a system that downloads about 6000 (small) files in a row, and it quite effectively keeps you from doing anything else.
  Reply With Quote
Old 26th June 2005, 12:21   #114
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Megiddo_Guest
At the very beginnig this feature was requested by Jnum for silent mode, but I did it for all cases. OK, please test attached version - should be not so annoying in non-silent mode.
Attached Files
File Type: zip inetload.zip (30.5 KB, 628 views)
Takhir is offline   Reply With Quote
Old 26th June 2005, 14:45   #115
Mario Jr.
Guest
 
Posts: n/a
Is it possible to create something like a patch client to download the latest version using nsis and this plugin? If so can someone maybe give me an hint?
  Reply With Quote
Old 26th June 2005, 15:22   #116
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
1. Create installer without uninstall section, for example Updater.exe with package download and install functionality. Include it to your distribution package, add link to Start menu. Or execute it in the silent mode once a week from your application. It should send request to server with current version number, server can return new package or "no version yet"\
2. Afrow UK wrote above about bittorent http://sourceforge.net/projects/xbtt/
Takhir is offline   Reply With Quote
Old 26th June 2005, 15:38   #117
Mario Jr.
Guest
 
Posts: n/a
Quote:
Originally posted by Takhir
1. Create installer without uninstall section, for example Updater.exe with package download and install functionality. Include it to your distribution package, add link to Start menu. Or execute it in the silent mode once a week from your application. It should send request to server with current version number, server can return new package or "no version yet"\
I'd like something like download a text file from a server in which you see the version required and if lower it downloads and installs what's needed, is this possible?
  Reply With Quote
Old 26th June 2005, 17:17   #118
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Yeh sure it is!

Use InetLoad to download the file, then use FileOpen, FileRead to get the version info out. Remember to use TrimNewLines on the stuff you read in case there are any (new lines). Finally compare read value using StrCmp with value in registry or in define (for example).

-Stu
Afrow UK is offline   Reply With Quote
Old 26th June 2005, 17:42   #119
Mæster
Member
 
Join Date: Apr 2003
Location: Germany
Posts: 62
Send a message via ICQ to Mæster Send a message via AIM to Mæster
Need some example for an internet updater? Take a look at the "old" NSIS Update Script: http://cvs.sourceforge.net/viewcvs.p...0Update/Attic/
Mæster is offline   Reply With Quote
Old 26th June 2005, 18:03   #120
Mæster
Member
 
Join Date: Apr 2003
Location: Germany
Posts: 62
Send a message via ICQ to Mæster Send a message via AIM to Mæster
Just one thing for better organisation of inetload plugin.
@Takhir:
Would be great if you just would use the already existing wiki page http://nsis.sourceforge.net/wiki/InetLoad to store the newest version of the initload.zip. Please dont use a link to the forum for the download. I had done those changes to the wiki but i am really unable to find the latest official realease here in the forum in more than 150 replies. A central place for downloading the newest release (the wiki page) is much more better than posting a new reply with a new attachment here in the forum, dont you think so?

Thank you, great work as well.
Mæster is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump