nsfis
19th July 2007 14:31 UTC
ReadRegBin needed
I need ReadRegBin instruction as opposite to WriteRegBin. kichik answered in July 2003 that "ReadRegBin is not available because values from there can contain null characters and it's impossible to process this data with normal string functions." (see http://forums.winamp.com/showthread.php?postid=1030878). I think it should be feasible - if WriteRegBin accepts hexadecimal string representation of binary value then ReadRegBin could (should) do the same conversion so possible zero would be represented as '00' in string.
What do you think?
Anders
19th July 2007 14:37 UTC
You can do it with the system plugin or create a new plugin that does whatever you want
nsfis
19th July 2007 15:08 UTC
Yes, everything can be done by system or custom plugin but where is simplicity? I am installer builder, not programmer. It just seems to me strange that NSIS core has WriteRegBin instruction and not the opposite one.
Anders
19th July 2007 15:32 UTC
Because its a installer, so write and delete is to be expected, but how common is it to read a regbin value?
nsfis
19th July 2007 16:17 UTC
My installers are reading from registry a lot. Eg. I need to read values from older versions or values written by other software packages - that's the case why I need ReagRegBin because I have no control of how these values are stored.
Red Wine
19th July 2007 17:07 UTC
Registry plugin isn't good for that?
http://nsis.sourceforge.net/Registry_plug-in