tomlobato
6th April 2007 02:56 UTC
Registry dial-up proxy
Hi all!
I need to configure the dial-up proxy settings with nsis installer. This is stored on registry in binary form. If the connection name is 'Speedy', the key is
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\Speedy
I need:
1) To find the connection name. For list it to user to choose.
2) Modify some hex's within this value (bytes 17 to 30, related to IP:port), holding others bytes unchanged.
Ok, for 2) I can read the binary value, convert to string, change the right bytes and write back. But I'd like to know if there is a better, higher level, way.
Any help/pointers/hint are welcome.
Tom Lobato
tomlobato
6th April 2007 16:37 UTC
Hi Rede Wine, thank you for the reply
Sorry, I forgot to say I read about registry plugin. But I such case I didn't find how to make this task in a different way with ou without this plugin. In both case I would need to read the binary value, convert to string, change the right bytes (bytes 17 to 30 ) and write back to registry.
Is there a method that let me change especific bytes whitin a binary value?
Tom Lobato
Red Wine
6th April 2007 17:12 UTC
As far I can say the plugin among others exports functions such as "extra read" "extra write" "string to hex" "hex to string" that might help you achieve what you want to.
The only problem I guess is the "extra write" function which appends instead of replace. I think you should ask Instructor if it's possible to add such function.
tomlobato
6th April 2007 17:24 UTC
Ok, I will talk to instructor.
But maybe it does not need to make a 'feature request' just for this task.
Anyway, Thank you very much for the help!
Tom Lobato