Archive: App name in MUI_FINISHPAGE_RUN


App name in MUI_FINISHPAGE_RUN
!define APP_NAME "Image Player"
...
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}.exe"

and I see on the finish page

<check mark> Run Player

instead of Run Image Player. NSIS 2.1 on W2K Server.


MUI_FINISHPAGE_RUN sets the program to run, MUI_FINISHPAGE_RUN_TEXT sets the display text.


Thanks, Kichik!

Expand All helps to read MUI Readme :)
And I still hope that it is easy to fix this place - default check box text from exe name :)

From NSIS help:
"MUI_FINISHPAGE_RUN exe_file
Application which the user can select to run using a checkbox. You don't need to put quotes around the filename when it contains spaces."

For memory (please note "Run " in last line):
!define APP_NAME "Image Player"
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Run ${APP_NAME}"


Originally posted by Takhir
And I still hope that it is easy to fix this place - default check box text from exe name :)
Fix what?

I used earlier

!define APP_NAME "MerryGoRound"
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}.exe"
and finish page displayed following text
"Run MerryGoRound"

So I guess that MUI finish page uses file name without extention as a default text for checkbox and some code presents for this purpose. But this code not works if file name includes spaces. Or I misunderstood something?


The MUI uses MUI_TEXT_FINISH_RUN from the language file by deafult. In English.nsh it's "&Run $(^NameDA)".


Welcome page.
Caption: Image Setup
Text: Welcome to the Player Setup Wizard.
MessageBox: Are you sure you want to quit Image Setup?

I used fresh 2.01, all NSIS files unchanged.


Looks like you forgot to put quotes around the name. Use:

Name "Image Player"
not:
Name Image Player

My test nsi file (with debug MessageBoxes and empty installation) attached to this post.


Use:

Name "${APP_NAME}"

Thanks,

this works:

!define APP_NAME "Image Player"
Name "${APP_NAME}"