Old 5th April 2003, 13:12   #1
rpetges
Member
 
Join Date: Sep 2002
Location: Luxembourg
Posts: 81
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 is offline   Reply With Quote
Old 7th April 2003, 14:57   #2
rpetges
Member
 
Join Date: Sep 2002
Location: Luxembourg
Posts: 81
Please help ... PLEASE
rpetges is offline   Reply With Quote
Old 7th April 2003, 15:30   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
What part of the script are you having problems with?

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 7th April 2003, 19:57   #4
rpetges
Member
 
Join Date: Sep 2002
Location: Luxembourg
Posts: 81
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 is offline   Reply With Quote
Old 7th April 2003, 22:54   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
I don't have one ready. I'll try to write one tomorrow.

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 8th April 2003, 07:07   #6
rpetges
Member
 
Join Date: Sep 2002
Location: Luxembourg
Posts: 81
Quote:
I don't have one ready. I'll try to write one tomorrow.
That would be really great !
rpetges is offline   Reply With Quote
Old 8th April 2003, 10:28   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Here it is:

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

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 8th April 2003, 13:50   #8
rpetges
Member
 
Join Date: Sep 2002
Location: Luxembourg
Posts: 81
Thank you very much ... I'll give it try.
rpetges is offline   Reply With Quote
Old 11th January 2013, 05:54   #9
PoRtAbLe_StEaLtH
Junior Member
 
Join Date: Jul 2011
Posts: 49
Crashes?

Quote:
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.
PoRtAbLe_StEaLtH is offline   Reply With Quote
Old 11th January 2013, 06:00   #10
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,085
http://web.archive.org/web/200401060...ances=0,32,135

Change RegOpenKeyExA to RegOpenKeyEx etc

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th January 2013, 06:21   #11
PoRtAbLe_StEaLtH
Junior Member
 
Join Date: Jul 2011
Posts: 49
Quote:
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..
PoRtAbLe_StEaLtH is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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