I'd like to discuss decent problem. I've put the "registry" part of my install script into separate file (e.g. registry.nsi). That file is !included in my "main" .nsi file. I use function ZapisRegistry to do all the reg's work.
Main script:
Auxiliary script:
...
Section Install
...
Call ZapisRegistry
...
SectionEnd
...
Now, everything works OK.
!macro ZapisReg type root hive key value
...
!macroend
...
Var AktualniKlic
Function ZapisRegistry
...
StrCpy $AktualniKlic "Software\Microsoft" ; i am not a M$ guy
MessageBox MB_OK $AktualniKlic ; JUST TO BE SURE
...
; REGISTRY WORKAROUND
FunctionEnd
...
But if I add ANOTHER ONE macro into my auxiliary script, the variable $AktualniKlic will be empty after the StrCpy instruction.
What am I doing wrong? 🙁
PS: "Zapis" means something like "Write" 😉