Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   using WriteRegBin gives nsis compiler error (http://forums.winamp.com/showthread.php?t=244588)

aran.ramos 25th April 2006 17:10

using WriteRegBin gives nsis compiler error
 
Hello everyone,

The following instruction gives me an error when compiling

WriteRegBin HKCU "software\example" "Phrase" $R1

$R1 holds the data to put in the registry. If I add the data directly in the code there is no problem, but of course that isn't possible as I read the data from a file.

Other similar instructions (like: WriteRegDWORD, WriteRegStr) don't give me any kind of error.

Any idea why might this be happening?


Kind Regards
Aran

Instructor 25th April 2006 17:21

WriteRegBin - "valuedata" it is run-time parameter it can't be variable. See Registry plugin
code:
${registry::Write} "HKCU\software\example" "Phrase" "$R1" "REG_BINARY" $0

aran.ramos 25th April 2006 17:25

Thanks Instrutor, very helpful.


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.