Skip to content
⌘ NSIS Forum Archive

readable size REG_EXPAND_SZ??

5 posts

ShakerWD#

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
Brummelchen#
maybe, try
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
ShakerWD#
ok, thought its the plugin deliverd with nsis distribution.
will give it a try.

thx a lot!

cheers

Daniel
Instructor#
For read such string you need to use NSIS special build with max string length 8192:


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:
#define MAX_STRLEN 8192