Archive: MUI questions


MUI questions
Hello,

I'm using :
- NSIS 2.05
- NSIS Modern User Interface version 1.72
- W2000 SP4

I've got some more questions on NSIS and MUI.

I'm using the following steps in my installers :

;
; INSTALLER's pages order
;
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${LOCATION_LICENCE}"

!define MUI_PAGE_CUSTOMFUNCTION_PRE Defaults.onPreDirPage
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE Defaults.onLeaveDirPage
!insertmacro MUI_PAGE_DIRECTORY

!define MUI_PAGE_CUSTOMFUNCTION_PRE Defaults.onPreStartMenuPage
!insertmacro MUI_PAGE_STARTMENU StartMenuFolder $STARTMENU_FOLDER
!insertmacro MUI_PAGE_INSTFILES

!define MUI_PAGE_CUSTOMFUNCTION_SHOW Defaults.onShowFinishPage
!insertmacro MUI_PAGE_FINISH

;
; UNINSTALLER's pages order
;
!define MUI_PAGE_HEADER_TEXT "Uninstall ${COMPANY_SHORT_NAME} ${PRODUCT_SHORT_NAME} ${PRODUCT_VERSION}"
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.Defaults.onPreConfirmPage
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"
!ifdef MUI_TEXT_FINISH_SHOWREADME
!undef MUI_TEXT_FINISH_SHOWREADME
!define MUI_TEXT_FINISH_SHOWREADME "&Show Overview Documentation"
!endif


And many things doesn't works as I wanted to :/

1 - I've got the windows to select the STARTMENU path but it's not taken in account (it's alwayrs the default value taht is used)

2 - On the last page (you installation is finished,...), I'ld like to replace the "show readme" checkbox text by "show overview documentation" but !define MUI_TEXT_FINISH_SHOWREADME "&Show Overview Documentation" doesn't work

3 - "Overview Documentation" is an html file and I'ld like to made it opened by the default web browser instead of a text editor. Is it possible to do that, and if yes, how ?

Thx

Geoffrey

1. Make sure that you are declaring the $STARTMENU_FOLDER variable:
Var STARTMENU_FOLDER

2. Use !define MUI_TEXT_FINISH_SHOWREADME "&Show Overview Documentation" before insert the MUI_PAGE_FINISH macro.

3. When the HTML doc is ran, it uses the default shell execution for that file type. Therefore on your system, the default is to open it for editing (ie when you double click on it).

-Stu


1. I've found the problem, in fact STARTMENU_FOLDER was modified after the MUI_PAGE_STARTMENU by a fonction.

2. I've done that (but with MUI_FINISHPAGE_SHOWREADME_TEXT variable) and it works.

3. OK, it works now (i'm using default installations developped by someone that left our company).

Thx Afrow

Geo