The non simple way would be to add a multi-line text field, hide it before you display the dialog and show it when the user checks the check-box. You still have a problem though if the file is longer than 1023 characters (in which case you'll need to use the NSIS special build for longer strings).