Skip to content
⌘ NSIS Forum Archive

Confusion on using custom pages.

5 posts

TelePlus#

Confusion on using custom pages.

I'm trying to get a custom page to show up to ask for some user information. I want it to show between the License and Components pages. So far, everything I've tried hasn't quite worked. The following are a few attempts, cut down to (I think) the essentials. Can you please tell me what step(s) am I missing?

What I want: Welcome / License / Custom / Components / Directory / Install.

!define MUI_WELCOMEPAGE
LicenseData "${NSISDIR}\Code\License.txt"
!define MUI_LICENSEPAGE
!define MUI_DIRECTORYPAGE
!define MUI_COMPONENTSPAGE
;;;page license
;;;Page custom AskQuestion ": Aircraft Type"
;;;Page components
;;;Page directory
;;;Page instfiles
!insertmacro MUI_LANGUAGE "English"

Goes Welcome / License / Components / Directory / Install. Doesn’t go through Custom because it’s been commented out.


;;;page license
Page custom AskQuestion ": Aircraft Type"
;;;Page components
;;;Page directory
;;;Page instfiles
!insertmacro MUI_LANGUAGE "English"

Goes Custom / Welcome / License / Components / Directory / Install


page license
Page custom AskQuestion ": Aircraft Type"
;;;Page components
;;;Page directory
;;;Page instfiles
!insertmacro MUI_LANGUAGE "English"

Goes License / Custom / Welcome / License / Components / Directory / Install


page license
Page custom AskQuestion ": Aircraft Type"
;;;Page components
;;;Page directory
;;;Page instfiles
!insertmacro MUI_LANGUAGE "English"

Goes License (BLANK) / Custom / Welcome / Components / Directory / Install

I've gone through a lot of the example material (that's where I found out how to put up a custom page in the first place), but I'm obviously unsure of the correct steps to put my custom page when in the sequence I want it. I'm really hoping you can help, or point me to something I've missed.

Many thanks for your time.

Ken Andrews
kichik#
You are supposed to use the macros when you want a custom page in b3. Please refer to the MUI readme under section 5 - Insert custom pages (optional). There is also an example of usage in Examples\Modern UI\InstallOptions.nsi.