Archive: need help with this


need help with this
i am wondering how to call a function wiht this

MUI_FINISHPAGE_SHOWREADME_FUNCTION

i have tried this

!define MUI_FINISHPAGE_SHOWREADME_TEXT "Run Need For Speed Hot Pursuit 2"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION run

with this after it

Function run
exec "$instdir\NFSHP2.exe"
FunctionEnd

and get this error
install function "run" not referenced - zeroing code (287-289) out


Quote from documentation:
MUI_FINISHPAGE_SHOWREADME_FUNCTION function_name

Call a function instead of showing a file (define MUI_FINISHPAGE_SHOWREADME without parameters). You can use the function to show multiple files or you can change the checkbox name and use it for other things.
Example:

  !define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Run Need For Speed Hot Pursuit 2"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION run
!insertmacro MUI_PAGE_FINISH

thx now works i did not think that you would need to put that line in