I have searched through the forum, asked google and read through the NSIS User Manual but couldn't find an answer. But I have to warn you, I'm not a software developer, I only have a bit experience with C and HTML.
I have a little problem with the directory of my installation. I read out a path and would like to add a sting to the installation path.
When I try it with Installdirregkey, I can't use variables and therefore I'm not able to add anything to the install path.
If I use ReadRegStr, I can add it to the variable $0, but I cant get the content of it outside the function:
ReadRegStr $0 HKLM "Software\Microsoft\Microsoft Games\Flight Simulator\9.0\" "EXE Path"
I get a blank destination back, and not the Path I would like to have. If I put in a messagebox in the function, it works fine.
I'm pretty sure it's a silly question, but actually I'm really blocked.