title: In NSIS, how to apply a onClick event on a dialog control at runtime?
body: <p>On this control,</p>
  
  <pre><code> CONTROL "link", 1002, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 195, 45, 10 
  </code></pre>
  
  <p>In nsis,</p>
  
  <pre><code>!define MUI_UI "myUi.exe"
  !define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
  !insertmacro MUI_PAGE_LICENSE "License.rtf"
  ...
  Function LicenseShow
    ...
  
    ; Inner window
    FindWindow $0 "#32770" "" $HWNDPARENT
  
    ; Link
    GetDlgItem $1 $0 1002
    SetCtlColors $1 0x0000FF 0xFFFFFF ; This works
    ${NSD_SetText} $1 "Link to google" ; This works too
    ${NSD_OnClick} $1 on_click_link ; This does NOT work
  
    ...
  FunctionEnd
  </code></pre>
  
  <p>Then,</p>
  
  <pre><code>Function on_click_link
      ExecShell "open" "http://www.google.com"
  FunctionEnd
  </code></pre>
  
  <p>How can I add a <strong>onClick event</strong> on this 'Label' at runtime ?
  I don't want to use <strong>nsDialogs::Create 1018</strong> et <strong>nsDialogs::Show</strong> for this.</p>
  
  <p>Any ideas ?</p>