Archive: Conditional message display in MUI_PAGE_FINISH


Conditional message display in MUI_PAGE_FINISH
Hi all,

I am using MUI_PAGE_FINISH for displaying the finish page for successful/unsuccessful installation of my application. I am adding the text in finish page using
!define MUI_FINISHPAGE_TEXT "$(SUCCESS)", where SUCCESS is the LangString defined in other .nsh file, same way I have 'UNSUCCESS' macro which contains the message for unsuccessful installation of the application.

Can anyone tell me how to add these SUCCESS and UNSUCCESS text conditionally on the MUI_PAGE_FINISH. As I know, for adding the finish page, we need to use !insertmacro in the begining and adding the text in page we need to define MUI_FINISHPAGE_TEXT.. text before the !insertmacro.

Regards
Venu


as the finish page is a custom page created with installoptions, you can simply edit the .ini file. see the modern ui readme and the contrib\modern ui directory for further information.


You can set the text to use a variable and fill that variable with whatever message you want prior to showing the finish page.