title: NSIS Function - quit installer
body: <p>In my NSIS installer i have a custom function where the user has 2 Radio Buttons. Selecting the first one and clicking "Next" installs the software. Selecting the second one (Browse) and clicking "Next" displays an HTML file found on the installation medium.</p>
  
  <p>Everything works but I would like to actually quit the installer when the user selects to browse option and the HTML page is displayed. Any idea how to do this?</p>
  
  <p>In my custom page I have this:</p>
  
  <pre><code>    ${NSD_CreateRadioButton} 70 95 40% 6% "Install the Manuals to your PC"
          Pop $hwnd
          ${NSD_AddStyle} $hwnd ${WS_GROUP}
          ${NSD_SetUserData} $hwnd "true"
          ${NSD_OnClick} $hwnd RadioClick
      ${NSD_CreateRadioButton} 70 175 40% 6% "Browse the $MEDIUM content"
          Pop $hwnd
          ${NSD_SetUserData} $hwnd "false"
          ${NSD_OnClick} $hwnd RadioClick
  </code></pre>
  
  <p>I have a function that gets the data:</p>
  
  <pre><code>Function RadioClick
      Pop $hwnd
      ${NSD_GetUserData} $hwnd $inst
  FunctionEnd
  </code></pre>
  
  <p>And finally, a function that does the stuff with that data (start installation or browse):</p>
  
  <pre><code>Function post
      ${If} $inst == ""
          MessageBox MB_OK "Please specify an option"
          Abort
      ${ElseIf} $inst == false
          ExecShell "open" "$EXEDIR\TechPubList_ForPC\$START_PUB"
          Abort    
      ${EndIf}
  FunctionEnd
  </code></pre>
  
  <p>I need something to put in this last function after the "Abort" that actually quits the installer.</p>
  
  <p>Any help is welcomed! Thank you!</p>