Archive: NSISDL problems


NSISDL problems
Hi all

I'm not sure where the issue is, but I've been using NSISDL successfully until I bring it into work, and try to run an updater I made (using NSIS/NSISDL) through our MS ISA Server. I have the firewall client installed, but that makes no difference.

It still seems to download the file in IE OK, if I put the URL into there, but in the utility (using NSISDL) it fails.

Is this because there is no proxy support within the NSISDL plugin, or can anyone explain why I might be having this problem and hoq to overcome it?

Thanks


NSISdl doesn't support proxy with passwords. It does support normal proxies. It takes the proxy configuration from the registry where IE keeps it (Software\Microsoft\Windows\CurrentVersion\Internet Settings). Did NSISdl return any error (check $0 unless using the latest CVS version where you should check the stack)? If so, what was the error?


I think I got this one fixed, or at least worked around:

My problem seems to be that the downloader, although it has support for proxy (without authentication), and uses the IE settings, it doesn't seem to have support for the ProxyOverride option for local addresses.

Although I'm not really a coder, I did have a look at the source of nsisdl.cpp. At around line 230 is the statement that reads the reg proxy settings for IE, so I'd guess this needs a small addition to check if the address matches any of the strings in the semi-colon delimited value of ProxyOverride. i.e. addresses that begin with...

Knowing PHP a little and knowing that IE has support for wildcards in the addresses such as 192.168.0.* and the like, maybe some regex would be required?

Is this a feature that could be added easily to NSISdl?

My workaround is to temporarily disable proxy, download updates (they're located on a local webserver), and then re-enable.

I would be glad to help with testing!


That won't be so easy to accomplish. However, a fallback to no proxy can be very easily added. What do you think?


A fallback is not necessary since I can just switch off ProxyEnable with one line in the script as I have done already.

To make it more useful, eventually it will need full support for proxy settings, including Override and authentication.

Since I have completed this project with the workaround I have no urgency for the above-mentioned feature enhancements, but they should be there to complete the plugin.

To really dig in, FTP support would be cool too :-) maybe as a separate plugin.

Clearly this tool is used for liveupdate/online installer type setups (as I have used it for) so to compete with the big boys we need these features someday.

Thanks for your comments!