Basically, I'm storing a code in a variable.
Inconsistantly it will drop the last character of the code when writing it back into the registry.
Any ideas? Am I supposed to pass it some space to store in or something?
; Var to store Activation code in for upgrading app
Var ACTIVATION
; Read activation and store for later
${PPC-registry::Read} "HKEY_LOCAL_MACHINE\Software\MyApp\" "Activation" $R6 $R7
StrCpy $ACTIVATION $R6
Thanks if anyone can help.
; Write activation code back into registry
${PPC-registry::Write} "HKEY_LOCAL_MACHINE\Software\MyApp\" "Activation" "$ACTIVATION" "REG_SZ" $R0
${If} $R0 == "0"
;MessageBox MB_OK "Success in writing activation"
${ElseIf} $R0 == "-1"
MessageBox MB_OK "Failed to write activation code!"
${EndIf}
Is there a better way to store and write information?