Search code examples
windowsregistrynsis

How to create a registry key


How can I create a registry key with NSIS? I couldn't find the appopriate command in NSIS doc.

(I understand all security issues)

Thanks!


Solution

  • Install NSIS Registry plug-in

    Use following function to Create registry keys.

    Create Registry Key
    ${registry::CreateKey} "[fullpath]" $var
    $var == 1   # [fullpath] already exists
    $var == 0   # [fullpath] successfully created
    $var == -1  # error