Skip to content
⌘ NSIS Forum Archive

show Readme on uninstaller's finish page

17 posts

Chilli24#

show Readme on uninstaller's finish page

Hi. I looked over the docs but I don't seem to understand how I can show a readme file on the finish page of the uninstaller. I want something like this (for installer):

!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt"

or

!define MUI_FINISHPAGE_SHOWREADME_FUNCTION ShowReadme

Is anybody nice enough to help me. I'm sure there is a very easy way to do this, but I don't seem to find it.

Thanks in advance.
kichik#
MUI_FINISHPAGE_SHOWREADME is explained in the Page Settings section of the MUI readme. On the very top of this section, you'll find:
Note: There is no difference between installer and uninstaller page settings.
deguix#
Just put the defines right before you insert the finish page macro.

EDIT: Incredible that kichik and my comments add to each other nicely, even with 2 minutes of difference between the posts.
Chilli24#
I tried this:

!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION un.ShowLogs
!define MUI_FINISHPAGE_SHOWREADME_TEXT "View installation history"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!insertmacro MUI_UNPAGE_FINISH

but when compiling it gives me these errors:

Error: variable "MUI_NOABORTWARNING" already declared
Error in macro MUI_PAGE_FINISH on macroline 33
Error in macro MUI_UNPAGE_FINISH on macroline 7

Indeed I have already defined MUI_ABORTWARNING and MUI_UNABORTWARNING, but it's got to do with a readme in the finish page?
Chilli24#
Turns out it has nothing to do with MUI_ABORTWARNING and MUI_UNABORTWARNING. What is MUI_NOABORTWARNING? i cannot find in the MUI readme. And what's it got to do with the readme?
Chilli24#
Maybe I'm too tired or just blind but just by browsing the CVS (don't have a CVS client, no need), I don't seem to find Modern UI 1.73.
Can anyone help ? Thanks
Chilli24#
Hello again.
I downloaded the 2.09 (with advanced logging enabled) hoping that finally this issue is fixed. But it appears that it's not.
I have this:

!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION un.ShowLogs
!define MUI_FINISHPAGE_SHOWREADME_TEXT "View installation history"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!insertmacro MUI_UNPAGE_FINISH

When I compile it this is what I get:
!insertmacro: MUI_UNPAGE_FINISH
!define: "MUI_FINISHPAGE_CURFIELD_TOP" already defined!
Error in macro MUI_FUNCTION_FINISHPAGE on macroline 147
Error in macro MUI_PAGE_FINISH on macroline 46
Error in macro MUI_UNPAGE_FINISH on macroline 7

Any ideas?
Joost Verburg#
There is a bug that causes this compile error when 'Show Readme' or other checkboxes are used on multiple pages. It has been fixed in the lastest MUI version (uploaded to CVS).
Chilli24#
OK...It works with the normal makensis.exe. With the one that has logging enabled it doesn't work.
Joost Verburg#
It is not related to the makensis compiler. You should download the latest development version to get it to work.