Archive: Reg_multi_sz


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


Please help ... PLEASE


What part of the script are you having problems with?


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 ?


I don't have one ready. I'll try to write one tomorrow.


I don't have one ready. I'll try to write one tomorrow.
That would be really great ! :up:

Here it is:

http://nsis.sourceforge.net/archive/...ances=0,32,135


Here it is:

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

Crashes?

Originally posted by kichik
Here it is:

http://nsis.sourceforge.net/archive/...ances=0,32,135
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.

http://web.archive.org/web/200401060...ances=0,32,135

Change RegOpenKeyExA to RegOpenKeyEx etc


Quote:


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..

Originally Posted by Anders (Post 2907200) http://web.archive.org/web/200401060...ances=0,32,135

Change RegOpenKeyExA to RegOpenKeyEx etc