Here is the code:
${registry::Write} "HKEY_LOCAL_MACHINE\SOFTWARE\test" "CommandLine" "" "REG_MULTI_SZ" $R0The result is:But this is not empty string - but string with one string separator.[HKEY_LOCAL_MACHINE\SOFTWARE\test]
"CommandLine"=hex(7):00,00,00,00
The real "empty" result must be:
This is the value afte creation of empty REG_MULTI_SZ in regedit.[HKEY_LOCAL_MACHINE\SOFTWARE\test]
"CommandLine"=hex(7):00,00
And if I use this code:
${registry::Write} "HKEY_LOCAL_MACHINE\SOFTWARE\test" "CommandLine" "$\n" "REG_MULTI_SZ" $R0the result isSo - it seems that registry::Write is always adds extra \0 to the value, and this is new string for REG_MULTI_SZ. How I can avoid this from nsis script?"CommandLine"=hex(7):00,00,00,00,00,00