Archive: Custom Page


Custom Page
I wrote this code and need display my customa page saved in this location, but it didn't work it? Where is bug, please?

;--------------------------------
;Pages

!insertmacro MUI_PAGE_WELCOME
Page custom volbaCADU ;Custom page
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "Czech"

;--------------------------------
;;Custom Pages

LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install Options Page Title"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "A subtitle"

Function volbaCADU ;FunctionName defined with Page command
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "${NSISDIR}\FAST\FAST_A.ini"
FunctionEnd

!insertmacro MUI_PAGE_WELCOME
Page custom volbaCADU ;Custom page
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Czech"


LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install Options Page Title"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "A subtitle"

LangString TEXT_IO_TITLE ${LANG_CZECH} "CZECH Title"
LangString TEXT_IO_SUBTITLE ${LANG_CZECH} "CZECH subtitle"

Function volbaCADU ;FunctionName defined with Page command
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "FAST_A.ini"
FunctionEnd

Function .onInit
;Extract InstallOptions INI files
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "${NSISDIR}\FAST\FAST_A.ini"
FunctionEnd

Thanks a lot, but if I correct it, when I run setup, it show me a alert: It's unable open the file for write...


Now it's ok, I must use MUI_INSTALLOPTIONS_EXTRACT_AS.
Thanks all for reply