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 🙁 (beside using a plain ftp-client 😉).
http + ftp download plug-in
545 posts
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 🙂
Extremely annoying.
Other than that, InetLoad has saved me 🙂
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.
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.
what's the difference between inetc and inetload?
My installer is crashing all over the place with both this and inetc plugin.
I'm downloading about 82 files using this macro:
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.
I'm downloading about 82 files using this macro:
and calling them all like this:!macro DownloadDistfile PACKAGE
StrCpy $R0 ${PACKAGE}
${Unless} ${FileExists} "$DISTFILES_PATH\$R0"
FileWrite $DISTLOG "$R0$\r$\n"
inetc::get "$DISTFILES_URL/$R0" "$DISTFILES_PATH\$R0"
Pop $0
${Unless} $0 == "OK"
${If} $0 == "Cancelled"
call .abortDownload
${Else}
DetailPrint "Error downloading: $R0"
${EndIf}
${Else}
DetailPrint "Successfully downloaded: $R0"
${EndUnless}
${Else}
DetailPrint "Skipping: $R0"
${EndUnless}
!macroend
in 82 different sections.!insertmacro DownloadDistfile package.zip
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.
I re-tested serial download of 3 12MB files
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.
with minimized installer, all the time I had notepad opened and it never losed focus during download. So botheringSetDetailsView hide
inetc::get "http://localhost/IMG_0188.tif" "$EXEDIR\IMG_0188.tif" /END
Pop $0
DetailPrint "Downloading: $0"
inetc::get "http://localhost/IMG_0189.tif" "$EXEDIR\IMG_0189.tif" /END
Pop $1
DetailPrint "Downloading: $1"
inetc::get "http://localhost/IMG_0190.tif" "$EXEDIR\IMG_0190.tif" /END
Pop $2
DetailPrint "Downloading: $2"
MessageBox MB_OK "Download Status: $0, $1, $2"
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.
thanks, that solved it!
also, forget what I said about the focus thing - i was testing with an old installer 😁 my bad.
also, forget what I said about the focus thing - i was testing with an old installer 😁 my bad.
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?
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?
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 🙂
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.
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.
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.
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?
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?
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:
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.
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.Push /end
Push filen
Push urln
...
Push file1
Push url1
inetc::get
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.
I checked my host but everything seems correct:
host: ftp://login😛assword@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
host: ftp://login😛assword@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
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).
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).
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
And I've sent pm to fabiochelly
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.
Thanks.
If InternetCrackUrl (used in plug-in to get url parts)reports url error - no, not supported. The only @ as password-host separator.
I discovered, this can be resolved by susbtituting the first "@" character with "%40"
Just curious:
A few posts back, fabiochelly asked:
A few posts back, fabiochelly asked:
is it possible to add a function to list files in a ftp directory?Does this functionality exist in the current version? If so, how do you use it? If not, any chance it could be added?
Does this functionality exist in the current version? If so, how do you use it? If not, any chance it could be added?1. No.
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 🙁
Sounds fair enough. Thanks, Takhir! 🙂
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.
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.
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"
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"
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).
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).
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 🙁 But till now I had not problems with binary files download. Nevertheless I'll update wiki to fix your situation (after some tests).
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.
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 🙁 But till now I had not problems with binary files download. Nevertheless I'll update wiki to fix your situation (after some tests).
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.
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.
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.
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.)
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?
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
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