Skip to content
⌘ NSIS Forum Archive

Reg_multi_sz

11 posts

rpetges#

Reg_multi_sz

Hi,

I need to read a REG_MULTI_SZ registry key and it appears that NSIS doesn't handle this apart using the System plugin.

Can anybody give me a piece of code on how to do this using the System plugin ?

Many thanks in advance
rpetges#
Don't simply know how to use the System plugin to retrieve a REG_MULTI_SZ value.

Do you have some code snippet on how to use to plugin for retrieving a REG_MULTI_SZ type ?
rpetges#
Here it is:

http://nsis.sourceforge.net/archive/...ances=0,32,135
Thank you very much ... I'll give it try.
PoRtAbLe_StEaLtH#
Crashes?

Originally Posted by kichik View Post
thank you for sharing this..
but i can't seem to get this to run.

i've tried implementing the code in my section, in a fuction then calling it in .oninit, etc.
I have the 3 defines pointing to a Multi_SZ value.

but everytime it reaches the script.. it crashes.
im using Unicode .. i can see you have Unicode support in the script.
Anders#


Change RegOpenKeyExA to RegOpenKeyEx etc
PoRtAbLe_StEaLtH#
Originally Posted by Anders View Post
http://web.archive.org/web/200401060...ances=0,32,135

Change RegOpenKeyExA to RegOpenKeyEx etc

thank you Anders,
i found a simpler solution to my problem and it's the good ol' MS-DOS.
My problem was MaxLength.. it caused the buffer to overflow..