Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th June 2007, 10:31   #1
talonx
Guest
 
Posts: n/a
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
  Reply With Quote
Old 17th July 2007, 09:44   #2
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
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
rockerz is offline   Reply With Quote
Old 17th July 2007, 09:55   #3
talonx
Guest
 
Posts: n/a
Not yet - guess we might have to write our own

- Hrish
  Reply With Quote
Old 17th July 2007, 10:05   #4
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
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 ??
rockerz is offline   Reply With Quote
Old 17th July 2007, 10:28   #5
talonx
Guest
 
Posts: n/a
I've worked with NSIS - but writing a plugin would require knowledge of C/C++ - am awfully unequipped in that direction.

- Hrish
  Reply With Quote
Old 17th July 2007, 16:33   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 18th July 2007, 03:54   #7
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
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
rockerz is offline   Reply With Quote
Old 18th July 2007, 05:04   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump