Archive: Function that opens files.


Function that opens files.
Hey all, was looking through the makensis documentation, and found a tag called "MUI_FINISHPAGE_SHOWREADME_FUNCTION", in which it said I could use a function to show multiple files.

I was wondering, how would that script look? And also, like the title says, how would I have the function open files in their respective apps (ie, txt files in notepad)?

This would come in very handy with my installer, so any help would be appreciated!


function myfunc
ExecShell "open" "http://nsis.sf.net/"
ExecShell "open" "$INSTDIR\readme.txt"
functionend
...
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION myfunc
!insertmacro MUI_PAGE_FINISH
...


Nice! Thank you, I shall try that!

On a related note, how would I go about adding a couple more check boxes onto the finish screen without going as far as creating a custom nsDialogs page?