Archive: Getting proxy info plugin


Getting proxy info plugin
Hello,
I've looked at the How to find the answer link, searched the forums and checked the available NSIS plugins list before asking here :).
Is there any NSIS plugin which would return the proxy settings (proxy host/port/authentication req or not) - I've seen the InetC, InetLoad plugins - but they accept these as parameters and not detect and return them as values. Is there anything similar to what I am looking for?
Thanks in advance.
Regards
Hrish


Proxy detection Plugin required
Hi, even I am looking for exactly the same things - proxy plugin. Have you been able to find any ??

Please help. Thanks


Not yet - guess we might have to write our own :)

- Hrish


hey..I m jus 5 days old to NSIS :):)..still unaware of how to write the plugins..how abt you? Have you got any idea of how to create the proxy plugin ??


I've worked with NSIS - but writing a plugin would require knowledge of C/C++ - am awfully unequipped in that direction.

- Hrish


You can do what NSISdl does and read it from HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings - ProxyEnable and ProxyServer. ProxyServer has to be parsed. If it contains http=xxxxx;, you need to get xxxx. If not, you need to get the entire string.


Hi kichik,

can you please explain in detail on how to go about for getting the proxy settings like port,host, username etc. using the NSISdl plugin. I am unable to get the NSIS code which does this. How can I see the code for how NSISdl plugin does this ?

Sorry for being so confused :P:P


What other details do you want? Read that registry key, parse it as mentioned and you have the proxy. The code is in Contrib\NSISdl\nsisdl.cpp.