CPack escape sequences for CPACK_NSIS_EXTRA_INSTALL_COMMANDS add garbage to escaped sequence within nested escaped quotes
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "WriteRegExpandStr \\\" \\\\\" \\\\\" \\\"")
Produces:
WriteRegExpandStr " \;\" ""
Because of buggy escape handling in CPack, it is impossible to insert a valid command to update the registry via set.
Edited by Anonymous