Archive: MUI_FINISHPAGE_SHOWREADME before MUI_FINISHPAGE_RUN?


MUI_FINISHPAGE_SHOWREADME before MUI_FINISHPAGE_RUN?
<alert comment="MUI newbie">

On the MUI FINISHPAGE, I would like to have the MUI checkbox for README before the MUI checkbox for RUN. Is this feasible, and if so, how?

At the end of the install, we want this order of actions:
* look at readme.txt
* run installation manager
* run actual application

I think I could figure this out with the "old" 1.x scripting, but I'm unclear about the MUI.

I've put together a 'work-around' by having the MUI_FINISHPAGE_RUN_FUNCTION do the readme with:
ExecWait "notepage $INSTDIR\readme.txt"
and the MUI_FINISHPAGE_SHOWREADME_FUNCTION being:
ExecWait $INSTDIR\InstallManager.exe
Exec $INSTDIR\MyApp.exe

but that seems flawed if there is a better alternative. I'm hoping to not have to resort to a custom section.

A related question ... with the ModernUI, can there be three checkboxes:
* readme.txt
* run InstallManager
* run Application

</alert>


Your method is the only one I can think of. The order of the checkbox execution is hardcoded in Contrib\Modern UI\System.nsh.

The MUI currently allows only two checkboxes. You can add another one by editing the INI of the page in the pre callback function of the finish page. This thread contains an example of adding a checkbox to the welcome page. It's essentially the same.