talonx
27th June 2007 11:31 UTC
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
rockerz
17th July 2007 10:44 UTC
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
talonx
17th July 2007 10:55 UTC
Not yet - guess we might have to write our own :)
- Hrish
rockerz
17th July 2007 11:05 UTC
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 ??
talonx
17th July 2007 11:28 UTC
I've worked with NSIS - but writing a plugin would require knowledge of C/C++ - am awfully unequipped in that direction.
- Hrish
kichik
17th July 2007 17:33 UTC
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.
rockerz
18th July 2007 04:54 UTC
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
kichik
18th July 2007 06:04 UTC
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.