ProxySettings: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
== Download Link == | == Download Link == | ||
<attach>ProxySettings.zip</attach><br> | |||
Zip-file contains binary, source and documentation. | Zip-file contains binary, source and documentation. | ||
Line 13: | Line 13: | ||
== Usage of plugin == | == Usage of plugin == | ||
Please read the documentation for descriptions how to use the plugin. | The following example shows how to change the proxy-settings for all | ||
dialup-connections but only for http-proxy: | |||
<highlight-nsis> | |||
... | |||
ProxySettings::GetConnectionCount | |||
pop $0 | |||
ProxySetLoop: | |||
intop $0 $0 - 1 | |||
ProxySettings::GetConnectionName $0 | |||
pop $1 | |||
ProxySettings::SetConnectionProxyByProtocol $1 _ | |||
"servername.com:80" "http" | |||
ProxySettings::GetConnectionProxy $1 | |||
pop $2 | |||
DetailPrint "Proxy of $1 changed to $2" | |||
intcmp $0 0 ProxySetLoopDone ProxySetLoopDone ProxySetLoop | |||
ProxySetLoopDone: | |||
... | |||
</highlight-nsis> | |||
Please read the documentation for verbose descriptions how to use the plugin-functions and for exact meanings of function's parameters. | |||
== Credits == | == Credits == |
Latest revision as of 16:08, 7 February 2008
Author: M.Ratz (talk, contrib) |
ProxySettings Plugin ©2008 by M.Ratz,
Download Link
ProxySettings.zip (93 KB)
Zip-file contains binary, source and documentation.
Description
This plugin makes it possible to set and read proxy-settings and connection information for dialup-connections and LAN-connection
Usage of plugin
The following example shows how to change the proxy-settings for all dialup-connections but only for http-proxy:
... ProxySettings::GetConnectionCount pop $0 ProxySetLoop: intop $0 $0 - 1 ProxySettings::GetConnectionName $0 pop $1 ProxySettings::SetConnectionProxyByProtocol $1 _ "servername.com:80" "http" ProxySettings::GetConnectionProxy $1 pop $2 DetailPrint "Proxy of $1 changed to $2" intcmp $0 0 ProxySetLoopDone ProxySetLoopDone ProxySetLoop ProxySetLoopDone: ...
Please read the documentation for verbose descriptions how to use the plugin-functions and for exact meanings of function's parameters.
Credits
- Written by M.Ratz
- last edited 06/02/2008