Archive: passing parameters to app in MUI_FINISHPAGE_RUN


passing parameters to app in MUI_FINISHPAGE_RUN
Hi all, is there a way to pass some parameters to my application. These are working fine for creating the shortcuts with the installer as below

CreateShortCut "$SMPROGRAMS\Bla Bla \linky.lnk" "$INSTDIR\app.exe" " --opt t" "$INSTDIR\VC.ico"

But when it comes to launching the app with MUI_FINISHPAGE_RUN I can't seem to find the correct syntax to get the app to run or not cause the compiler to fail.

This one fails to launch the application
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe --opt t"

This one causes the compiler to choke.
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe" " --opt t"


Any help in getting the above lines correct so that "--opt t" is added to the app.exe when launched at the end of the installation?

Many thanks for your time.


can you have it launch the lnk file instead?


Use MUI_FINISHPAGE_RUN_PARAMETERS.