Archive: NSISdl problem


NSISdl problem
I'm experiencing problems with NSISdl on a few of my users' machines.
The users are running big Firewalls, which is causing NSISdl to fail everytime.
Is there going to be a way to fix this, because I'm sure this will make (or has made) a lot of installers using NSISdl to not function correctly...

-Stu


Is Internet Explorer working properly? Can you get Internet Explorer's proxy configuration from them?


The only user I am able to contact now, uses NetScape.
He has no Proxy settings, and has a direct connection.

The other one having problems is away.

-Stu


Ok, user 1 fixed the problems.
He messed around with a firewall setting, and that fixed it.

Soberly Challenged says:

for some reasons, the firewall was blocking it
even though I told it to give access
but if you could get the app to be able to use an http and ftp proxy that would be great
just have it as an option for the people that need it
-Stu

NSISdl uses the proxy setting from Internet Explorer.


I will see what my other user has to say...

-Stu


I have the same problem
I am having the same problem with NSIS 2. Any luck figuring this one out? I tested NSISdl's ability to grab proxy settings from IE, and it seems to do that just fine. However even without any proxy configuration we get those complaints from our users.

Thanks much in advance.


In the end, users had to configure their firewall settings to fix the problems.

-Stu


crashes with nsisdl + firewall?
Hi,

I'm writing a script that uses nsisDL a lot, it's been working great but i have 2 issues.

1) Would it be possible to have an option to not display what files are being downloaded (just not display the names, progress bar is good)

2) I get crashes using my firewall. I've put MessageBox statements around the call to download() and its definitely happening in the dll. I'm using kerio software firewall. When the installer tries to connect to the internet i get a dialog from kerio saying an app is trying to call out. i can then accept or deny it (there is a checkbox to then accept all or deny all traffic), if i deny all with the checkbox on, the installer is fine. If i keep hitting deny (deny, deny, deny), it will crash out the installer.

anyone else get this / reproduce this? I'll start hacking around the dll and see if i can resolve it, but if the writers can (or someone else involved in the project), the better


1) You can use the quiet option. If you want a progessbar, you have to modify the source to make it hide the name.

2) We have never had reports about NSISdl crashing. Please create a debug version and see where it crashes.


Originally posted by Joost Verburg
1) You can use the quiet option. If you want a progessbar, you have to modify the source to make it hide the name.

2) We have never had reports about NSISdl crashing. Please create a debug version and see where it crashes.
thanks for the quick reply. I've coded the change for the name removal

about the firewall crashing, I get the crash at line 70 of nsisdl.cpp

return CallWindowProc((long (__stdcall *)(struct HWND__ *, unsigned int, unsigned int, long))lpWndProcOld, hwnd, message, wParam, lParam);

i'm debuggin this with the code from cvs, not my edited code. the message var is WM_ACTIVATE, wnd seems valid, though i haven't checked, maybe its because the dialog for the firewall is the foreground window? i'm not sure, i'll investigate, if you have any ideas, or ideas on how to get you further info, please post

Is this firewall a free download or do I have to pay to get it?


Can you include attach a script too? Are you downloading multiple files?


Originally posted by kichik
Is this firewall a free download or do I have to pay to get it?
From the kerio site: "Kerio Personal Firewall is free for home and personal use."

keep up the great work! :)

I see two of them on the website, one of them is not free. I need to know exactly which one it is.


sorry, I thought there was only one firewall offered by kerio with different licneses.

Of course only Afrow knows what exactly his user is umm.... using. ;)


its the free firewall
"kerio personal firewall 2.1.5"
link here

http://www.kerio.com/dwn/kpf2-en-win.exe

I can't post the script, as its huge and i'm using it at my co. its a very strange problem. I'm downloading multiple files, but i'm calling download multiple times (only one download per call to download right?)

basically the code looks like

NSISdl::download "http://www.blah.com/blah.php" "$PLUGINSDIR\test.dat"
Pop $R1
StrCmp $R1 "cancel" quit ""

NSISdl::download "http://www.blah.com/blah2.php" "$PLUGINSDIR\test2.dat"
Pop $R1
StrCmp $R1 "cancel" quit ""


this works find in 80% of the cases. sometimes i have a hard time getting it to crash, if its crashed once before. if i restart the computer, and keep hitting "deny" with correct timing, it will totally crash out.


Here is a simple script i'm using that can crash (brings up the "send error report to microsoft" dialog)

again, it depends on some kind of weird timing with the firewall. you should not check the box to "create a filter", you have to keep hitting deny at a certain rate, for me its about once a second, and i can get it to crash. Sometimes its ok, sometimes it crashes. I've seen this on multiple machines / OSes.


InstType Standard

Name "Test crash app"
ComponentText "This will crash sometimes"
OutFile "crash.exe"

Page instfiles "" "" ""

Section -DownloadScripts sec0
NSISdl::download /TIMEOUT=5000 "http://www.google.com/not-there.html" "not-there.txt"
Pop $R1

StrCmp $R1 "cancel" quitMe ""

NSISdl::download /TIMEOUT=5000 "http://www.winamp.com/not-there.html" "not-there2.txt"
Pop $R1

StrCmp $R1 "cancel" quitMe ""

goto out

quitMe:
Quit

out:
SectionEnd


Ramon has found and fixed the bug. A fix should be uploaded soon.

Thank you for your bug report and information fromcat2me.


bug status
Is there any more information on this issue?
I can't find anything in the bug tracker and I have similar problem with 2.0b4.

I need to upgrade to 2.0 anyway, but I have some font code that does not work in 2.0 yet.


Which issue are you refering to? Please post details about the problems and system configurations.

You should also try the download stuff using NSIS 2.0. There have been no big language changes since beta 4, what is the font problem?