Skip to content
⌘ NSIS Forum Archive

need help with this

3 posts

goofee691#

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
deguix#
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