Creating an InstallOptions page
I`m trying to create an installation options page. But can`t get it working.
In the same dir as my setup.exe i have a directory 'bin' which contains the 'installoptions.ini' where my page is defined. And i want this .ini to use during my installation.
I did the following:
;------------------------------------------------------------------------------------
; Pages
;------------------------------------------------------------------------------------
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!define MUI_LICENSEPAGE_CHECKBOX
!insertmacro MUI_PAGE_LICENSE "licence.txt"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Options page
Page custom InstallOptionsPage
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_NOAUTOCLOSE
; Finish page
!insertmacro MUI_PAGE_FINISH
;------------------------------------------------------------------------------------
;Reserve Files
;------------------------------------------------------------------------------------
ReserveFile "bin\installoptions.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "bin\installoptions.ini"
FunctionEnd
;------------------------------------------------------------------------------------
; Install Options Page
;------------------------------------------------------------------------------------
Function InstallOptionsPage
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "$INSTDIR\bin\installoptions.ini"
FunctionEnd