![]() |
#241 |
Junior Member
Join Date: Feb 2007
Posts: 4
|
Is there a chance to use the "chmod" command if uploading with ftp?
I'm building an installer for a webapp using this great plugin but I couldn't find a way to call chmod remotely ![]() ![]() |
![]() |
![]() |
![]() |
#242 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
InetLoad steals focus everytime it downloads a new file, even if I minimize the installer, it grabs the focus.
Extremely annoying. Other than that, InetLoad has saved me ![]() Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#243 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
ts77
all is possible, only time is a problem ![]() empezar Looks like you are using very old InetLoad version.. This feature was removed more then year ago (sf() function). While some focus tricks still may present in NSISdl display mode. Try to use http://nsis.sourceforge.net/Inetc_plug-in You can also put more url/file pairs to stack and download all you need in 'single' InetLoad/Inetc session. /NOUNLOAD option in the command line may help as well. |
![]() |
![]() |
![]() |
#244 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
what's the difference between inetc and inetload?
Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#245 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
My installer is crashing all over the place with both this and inetc plugin.
I'm downloading about 82 files using this macro: code: and calling them all like this: code: in 82 different sections. this is the only code in each section, so this is all the code used from the start of the installer to the end, and it crashes after a while, not always during the same download! oh and by the way, that focus thing still bothers me. even with the inetc plugin. Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#246 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
I re-tested serial download of 3 12MB files
code: with minimized installer, all the time I had notepad opened and it never losed focus during download. So bothering problem not reproduces with my Apache. Crashes also not happened. I never tested 82 sections, this may be NSIS problem as well. Do you see any minimum sections number when the problem appear? Can you test your script with "inetc::get /NOUNLOAD ... /END"? this should decrease number of dll loads/unloads. |
![]() |
![]() |
![]() |
#247 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
thanks, that solved it!
also, forget what I said about the focus thing - i was testing with an old installer ![]() Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#248 |
Senior Member
|
Hi,
is it possible to add a function to list files in a ftp directory? In fact, I need to download the list of existing files (with their dates) in a specific FTP directory. After that, I will display this list to the user so he can choose what file he wants to download. Is it possible to add a new method InetLoad::list? Lorsqu'on s'occupe d'informatique il faut faire comme les canards... Paraître calme en surface et pédaler comme un forcené par en dessous |
![]() |
![]() |
![]() |
#249 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
is it possible to pause downloading? say if a user presses Cancel, I want to display "Are you sure?" and have the download PAUSE. if they then press NO, the download should resume. I've only succeeded in making the download re-download, but that is not very good when we're talking 100MB+ files
![]() Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#250 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Not in current version. BTW if plug-in loses connection it re-gets file from the current position, on permanent problems it displays customizable /resume message and also correctly continue download, but on Cancel (may be disabled) it even deletes local file.
|
![]() |
![]() |
![]() |
#251 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
one more question. is it possible to display different messages on the same /BANNER download window?
e.g. "Downloading file 1 of 3" -> 2 of 3 -> 3 of 3 that is without it popping up another window? it's annoying when you have to download a lot of files during initialization and each file has its own window, as moving one window will only result in the next popping back up in the middle of the screen. Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#252 |
Senior Member
|
I've got a problem with one of my ftp servers.
This server, hosted by infomaniak.ch returns a 404 when I try to get a file via FTP. If I try to upload a file via FTP on this server, it works fine If I try to get the same file but with a HTTP get, it works fine. If I try to get a file from any other server than this one, it works fine. Every other FTP client can download from this server without error (even Internet Explorer) Is there a way to find why I get a 404 from this server if I use a FTP get with inetc? Lorsqu'on s'occupe d'informatique il faut faire comme les canards... Paraître calme en surface et pédaler comme un forcené par en dessous |
![]() |
![]() |
![]() |
#253 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
empezar
You can add as many url/file pairs to the command line as you want. To keep working with short command line use push to stack in the reverse order: This way plugin not re-creates dialog and not center it on every new file. But this is not compatible with various banner texts.code: fabiochelly 404 is common http status code, please check ftp:// at the beginning of command line http://en.wikipedia.org/wiki/List_of...r_return_codes . Also for full path (from / ) use ftp://server//path/file, but for current user home dir use single slash before path. |
![]() |
![]() |
![]() |
#254 |
Senior Member
|
I checked my host but everything seems correct:
host: ftp://login:password@chelly.net/bp.exe I always get a 404! I really think that my problem comes from the fact that this server is configured differently. I think there is a problem with your plugin if used with some rare servers or a specific configuration Lorsqu'on s'occupe d'informatique il faut faire comme les canards... Paraître calme en surface et pédaler comme un forcené par en dessous |
![]() |
![]() |
![]() |
#255 |
Senior Member
Join Date: Mar 2004
Location: Germany, Paderborn
Posts: 177
|
Hi Takhir,
I just downloaded the latest version of your InetC plugin and noticed that there are more dependencies than before. You now depend on msvcrt.dll (you did only depend on comctl32.dll and wininet.dll before). |
![]() |
![]() |
![]() |
#256 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
No. I had a lot of msvcrt dependencies earlier, but removed 80% in last releases. Finally this is not a problem - plug-ins depend on wininet.dll, but any system with wininet has msvcrt.dll
And I've sent pm to fabiochelly |
![]() |
![]() |
![]() |
#257 |
Junior Member
Join Date: Apr 2007
Posts: 6
|
Does this plugin work if there is an @ character in the username for an FTP server? I seem to get a URL parts error.
Thanks. |
![]() |
![]() |
![]() |
#258 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
If InternetCrackUrl (used in plug-in to get url parts)reports url error - no, not supported. The only @ as password-host separator.
|
![]() |
![]() |
![]() |
#259 |
Junior Member
Join Date: Apr 2007
Posts: 6
|
I discovered, this can be resolved by susbtituting the first "@" character with "%40"
|
![]() |
![]() |
![]() |
#260 | |
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
Just curious:
A few posts back, fabiochelly asked: Quote:
|
|
![]() |
![]() |
![]() |
#261 | |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Quote:
2. See 1. 3. inetc/inetload looks solid in current implementation, ftp/http, get/put/post - all the functions use 90% of common code (even write and read implemented in the same loop). ftp ls stays a bit apart and this is why I don't want to include it to these plug-ins. IMHO better way is to write a normal ftp plug-in. I even have a code of the ftp backup client (Explorer style, mirroring, files versioning, queues, file migration status for disk cache and so on..) I wrote few years ago for ADIC, but I cannot share this code and have time for small 'free' tasks only now ![]() |
|
![]() |
![]() |
![]() |
#262 |
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
Sounds fair enough. Thanks, Takhir!
![]() |
![]() |
![]() |
![]() |
#263 |
Junior Member
Join Date: Apr 2007
Posts: 6
|
Hi People,
I seem to have a problem downloading text files via ftp. Some new line returns are missing. Should there be an argument to set the ftp to binary or ascii? If so, is there a way I can do this? Thanks in advance. |
![]() |
![]() |
![]() |
#264 |
Junior Member
Join Date: Apr 2007
Posts: 6
|
Has anybody else found this?
If I put a text file online via ftp. Say the following: "hello world end" The InetLoad plug-in will download the file without the line returns, as: "hello world end" |
![]() |
![]() |
![]() |
#265 |
Junior Member
|
layout
NSISdl used the installer's "Cancel" button, and also expanded the progress bar to be the same size as the installation progress bar (in Modern UI mode). Is there a way to get inetc to act the same? (/NOCANCEL just removes the extra cancel button and does not enable the built-in button).
|
![]() |
![]() |
![]() |
#266 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Just from vacations
![]() ART_Adventures change FTP_TRANSFER_TYPE_ASCII to FTP_TRANSFER_TYPE_BINARY in source code and rebuild plug-in. I cannot remember why ASCII was used ![]() NeoAlus not in options - code correction required. Inetc inserts a small dialog with progress bar to NSIS window (3-rd level dialog), so this dilaog and it's controls to be resized. Looks reasonable, I'll try to add this feature soon. May be in weekend. A lot of other work now. |
![]() |
![]() |
![]() |
#267 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
1. Plug-in uses ASCII mode for file size requests only (ftp), file download is always binary, so please check your server settings. I tested ASCII download from Wftpd.exe server and everything was correct.
2. Extra Cancel button should exists by design. Second progress bar and text above it may be resized (see attached image), but I don't like this design so I'll leave plug-in as it is now. If you want I can send you inetc.cpp code with resizing I wrote today. |
![]() |
![]() |
![]() |
#268 |
Junior Member
Join Date: May 2007
Posts: 4
|
Is this plugin able to calculate the total file size and thus showing the total download time correctly? It works in 'batch' mode, but every file is download separately and therefore the total download time is unknown, if multiple files are requested. (at last if http download is used.)
|
![]() |
![]() |
![]() |
#269 |
Junior Member
Join Date: Jul 2006
Posts: 5
|
Some builds threw out a "Url Parts Error" at the end of the downloading but the file is successfully downloaded and not deleted. What's wrong with it?
|
![]() |
![]() |
![]() |
#270 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
acrunner: Your stack contains other items, use /END at the end of command line. Otherwise plug-in reads stack till end or first error in URL - File pair.
SEK_Blackhawk: no this option. You can show one of NSIS banners with progress bar showing size or number of files downloaded progress (inetc may be in the silent mode this case). To get files sizes from server use 'head' request. This banner worked correct http://nsis.sourceforge.net/Nxs_plug-in |
![]() |
![]() |
![]() |
#271 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
There really is a problem with Inetload FTP downloads and a recent version of the ProFTPD server. I also get 404 errors, even though the file exists. Try for example to download any file from ftp://ftp.lyx.org.
|
![]() |
![]() |
![]() |
#272 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Thanks, Joost,
I could reproduce situation and found 'why' - see attached screenshot. The same answer in console: PHP Code:
Edited after short googling: BTW ProFTPD 550 on SIZE has a great history ![]() Last edited by Takhir; 10th June 2007 at 17:57. |
![]() |
![]() |
![]() |
#273 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
FileZilla is able to display the file sizes, so they must be in some directory listing.
|
![]() |
![]() |
![]() |
#274 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
OK, both inetc & inetload allow FTP download now even is server rejects SIZE request, but progress bar functionality will be unavailable while file size is unknown (the same happen with chunked http replies). And confusing '404' shold not appear any more.
|
![]() |
![]() |
![]() |
#275 |
Junior Member
Join Date: Jun 2007
Posts: 1
|
inetload crash on windows Vista
When I run setup on windows vista, sometimes it runs fine but sometimes it crashes.
Every time crash occurs while downloading. I am using InetLoad for downloading through following command: InetLoad::load /TRANSLATE "Downloading %s" "Connecting ..." second minute hour s "%dkB (%d%%) of %dkB @ %d.%01dkB/s" "(%d %s%s remaining)" \ "192.168.1.204/xyz.exe" "$INSTDIR\xyz.exe" /END Any help will be appreciated. |
![]() |
![]() |
![]() |
#276 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
This happen sometimes in NSISdl mode you currently use. Happen in the part of code I took from NSISdl sources
![]() |
![]() |
![]() |
![]() |
#277 | |
Member
Join Date: May 2007
Posts: 50
|
Quote:
i like MessageBox show "HTTP Download Status: over" how can i do it show over |
|
![]() |
![]() |
![]() |
#278 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
is there a way of cancelling the installer by pressing the [x] button on the inetc download window during .onInit?
what "termination code" does inetc provide when you press that [x] button, if any (again, during .onInit with /banner mode)? I've tried "Cancelled" and "Terminated", but I get seemingly random results, and they don't come right away, but after about 2 seconds, which seems a bit buggy to me. this is the code I use: code: Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
#279 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Plug-in should return "Cancelled" string if user pressed this button. Download thread exit may require some time if it waits for data from socket.
|
![]() |
![]() |
![]() |
#280 |
Senior Member
Join Date: Sep 2003
Posts: 123
|
okay.
seems to work, though sometimes i still get the "could not download" message instead of "installation aborted". i can live with that though. Bored with the real world? Try QuakeWorld! |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|