Archive: MUI_FINISHPAGE_RUN - How do I specify this...


MUI_FINISHPAGE_RUN - How do I specify this...
The line below works, but is ugly because the black cmd window flashes before my gui opens.

MUI_FINISHPAGE_RUN cleanNdefrag.bat

$INSTDIR\cleanNdefrag.bat
Gui4Cli.exe "cleanNdefrag\cleanNdefrag.gui" -instance #NEW -NOPREFS

Is there a way to do this from the MUI_FINISHPAGE_RUN without the .bat file?

When I create a link, it looks like this:
CreateShortcut "$DESKTOP\cleanNdefrag.lnk" "$INSTDIR\gui4cli.exe" '"$INSTDIR\cleanNdefrag\cleanNdefrag.gui" -instance #NEW -NOPREF'

I've tried the following, and more, but nothing I've tried works, yet I'm guessing there is probably a way. I have no idea how to use the Value part of the command, perhaps I need to do something with that, but what?

MUI_FINISHPAGE_RUN "$INSTDIR\gui4cli.exe" '"$INSTDIR\cleanNdefrag\cleanNdefrag.gui" -instance #NEW -NOPREF'

MUI_FINISHPAGE_RUN '"$INSTDIR\gui4cli.exe" "$INSTDIR\cleanNdefrag\cleanNdefrag.gui" -instance #NEW -NOPREF'

Thanks, Lilla


Use MUI_FINISHPAGE_RUN_PARAMETERS (see the Modern UI Readme).


Joost, thanks that did it.

For anyone who might be interested, below is what worked.

notations:
\ at end of line is line continuation character
$\" represents a double-quote mark within the value


!define MUI_FINISHPAGE_RUN "$INSTDIR\gui4cli.exe"

!define MUI_FINISHPAGE_RUN_PARAMETERS \
"$\"$INSTDIR\cleanNdefrag\cleanNdefrag.gui$\" \
-instance Scripts_byLilla -NOPREFS"

Lilla