Archive: Newbie & windows registry


Newbie & windows registry
Hi all,
first of all: NSIS is great!!

I have a (really newbie) question: after having written something in the windows registry with NSIS (for example using

 WriteRegStr HKCU "Software\MyProgram" "InstallDir" $INSTDIR


what should I use from the program itself to read it (C++)?
I have tried various combinations of RegOpenKeyEx.... with no luck :cry:


Thank you!
lbc

ReadRegStr $0 HCKU "Software\MyProgram" "InstallDir"


Hi deguix,
In the post I wrote:

what should I use from the program itself to read it (C++)?
I meant: from the program, NOT from NSIS!

Any idea?

Thank you
Luigi

http://msdn.microsoft.com/library/de...e/registry.asp