Old 31st August 2005, 10:03   #1
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
readable size REG_EXPAND_SZ??

hi,
whats the readable size of an REG_EXPAND_SZ with ReadRegStr?
need to read and write HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ DevicePath

on my system there are 2062 characters in this string.
ReadRegString fails and returns "". Adding a test Key with the same type and 15 characters works fine.

solutions for this?

cheers

Daniel
ShakerWD is offline   Reply With Quote
Old 31st August 2005, 10:58   #2
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
maybe, try
http://forums.winamp.com/showthread....hreadid=223066

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 31st August 2005, 11:34   #3
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
ok, thought its the plugin deliverd with nsis distribution.
will give it a try.

thx a lot!

cheers

Daniel
ShakerWD is offline   Reply With Quote
Old 31st August 2005, 12:46   #4
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
For read such string you need to use NSIS special build with max string length 8192:
http://sourceforge.net/project/showf...ckage_id=15374

And if you want to use registry plugin with this special build for read strings more then 1024 you need to recompile it with line:
code:
#define MAX_STRLEN 8192
Instructor is offline   Reply With Quote
Old 31st August 2005, 12:58   #5
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
thy a lot Instuctor!
ShakerWD 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