CppCheck saves application paths in the registry as a REG_MULTI_SZ, which is saved to the .reg file in hex.
Example line from CppCheck.reg file (saved from launcher): "Application paths"=hex(7):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,\ 00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,20,00,28,00,78,00,38,00,\ 36,00,29,00,5c,00,4e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2b,00,2b,00,5c,\ 00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2b,00,2b,00,2e,00,65,00,78,00,\ 65,00,22,00,00,00,00,00
NSIS isn't a language I use often, so I'm wondering if anyone's able to help me write some custom code to save this as an array of strings, traverse through the strings and update path letters and so on, then save back to hex to the .reg file.
I tested some things from the registry plugin, but I'm obviously doing it wrong because even the basic parts aren't working for me. >.>
${SegmentFile} ${SegmentPrePrimary} ${registry::Read} "HKEY_CURRENT_USER\Software\Cppcheck\Cppcheck-GUI" "Application paths" $0 $1 ${registry::Write} "HKEY_CURRENT_USER\Software\Cppcheck\Cppcheck-GUI" "Application paths" "Test" $1 $2 !macroend