Archive: Install Options with Modern UI Question


Install Options with Modern UI Question
This my new order page in runtime that I want:
[list=1]
1. Welcome Page
2. License
3. My custome page
4. Components
5. Directory
...[/list=1]

Compiles great, but the order in runtime is not the same:

1. My custome page
2. Welcome Page
3. License
4. Components
...

This is part of my new code:



!define MUI_PRODUCT "Test Software"
!define MUI_VERSION "1.0"
!define MUI_UI "${NSISDIR}\Contrib\UIs\modern2.exe"
!define ResDir "C:\joelito\utilidades\NsisResDir"
!define MUI_CHECKBITMAP "${NSISDIR}\Contrib\Icons\modern.bmp"
!define MUI_SPECIALBITMAP "${NSISDIR}\Contrib\Icons\modern-wizard.bmp"
!define MUI_WELCOMEPAGE
!define MUI_LICENSEPAGE
Page custom Inicio ": Pantalla de inicio"
!define MUI_COMPONENTSPAGE
!define MUI_DIRECTORYPAGE
!define MUI_FINISHPAGE
!include "MUI.nsh"
!insertmacro MUI_SYSTEM
!insertmacro MUI_LANGUAGE "Spanish"

InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
OutFile "${MUI_PRODUCT}.exe"
LicenseData "${ResDir}\TODO.rtf"

Section "uno" he
DetailPrint "Uno"
SectionEnd

Section "dos" yo
DetailPrint "Dos"
SectionEnd

Function "Inicio"
InitPluginsDir
File /oname=$PLUGINSDIR\io.ini "${ResDir}\io.ini"
File /oname=$PLUGINSDIR\1_1.ico "${ResDir}\1_1.ico"
WriteIniStr $PLUGINSDIR\io.ini "Field 3" Text $PLUGINSDIR\1_1.ico
InstallOptions::dialog $PLUGINSDIR\io.ini
FunctionEnd



any ideas :igor:

Hey I fixed my own problem
Well, I forgot to put this :D


!include "MUI.nsh"
!define MUI_CUSTOMPAGECOMMANDS
!define MUI_WELCOMEPAGE
!define MUI_LICENSEPAGE
!define MUI_COMPONENTSPAGE
!define MUI_DIRECTORYPAGE
!define MUI_FINISHPAGE
!insertmacro MUI_SYSTEM
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_PAGECOMMAND_WELCOME
Page custom Inicio ": Pantalla de inicio"
!insertmacro MUI_PAGECOMMAND_LICENSE
!insertmacro MUI_PAGECOMMAND_COMPONENTS
!insertmacro MUI_PAGECOMMAND_DIRECTORY
!insertmacro MUI_PAGECOMMAND_INSTFILES
!insertmacro MUI_PAGECOMMAND_FINISH

Please check the documentation. The place of defines doesn't change the order of pages.

!define MUI_CUSTOMPAGECOMMANDS

...other defines...

!insertmacro MUI_SYSTEM

!insertmacro MUI_PAGECOMMAND_WELCOME
!insertmacro MUI_PAGECOMMAND_LICENSE
Page custom Inicio ": Pantalla de inicio"
!insertmacro MUI_PAGECOMMAND_COMPONENTS
!insertmacro MUI_PAGECOMMAND_DIRECTORY!insertmacro MUI_PAGECOMMAND_INSTFILES
!insertmacro MUI_PAGECOMMAND_FINISH

!insertmacro MUI_LANGUAGE "Spanish"