Skip to content
⌘ NSIS Forum Archive

App name in MUI_FINISHPAGE_RUN

11 posts

Takhir#

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.
Takhir#
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}"
kichik#
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?
Takhir#
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?
kichik#
The MUI uses MUI_TEXT_FINISH_RUN from the language file by deafult. In English.nsh it's "&Run $(^NameDA)".
Takhir#
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.
kichik#
Looks like you forgot to put quotes around the name. Use:
Name "Image Player"
not:
Name Image Player
Takhir#
My test nsi file (with debug MessageBoxes and empty installation) attached to this post.