Custom page not displaying
I am trying to allow a user to select to install one of two versions, if they select version 1 then a certain custom page is displayed, version 2 and another custom page is displayed. My code is below..........
;Page1
Page custom intropage
Function intropage
#Display the page
!insertmacro INSTALLOPTIONS_DISPLAY "intropage"
FunctionEnd
;TypeSelect
Page custom typeselect typeselectleave
Function typeselect
#Display the page
!insertmacro INSTALLOPTIONS_DISPLAY "typeselect"
FunctionEnd
Function typeselectleave
!insertmacro INSTALLOPTIONS_READ $R1 "typeselect" "Field 3" "State"
!insertmacro INSTALLOPTIONS_READ $R2 "typeselect" "Field 4" "State"
${If} $R1 == 1
!insertmacro INSTALLOPTIONS_DISPLAY "version1"
${EndIf}
${If} $R2 == 1
!insertmacro INSTALLOPTIONS_DISPLAY "version2"
${EndIf}
FunctionEnd
For some reason the custom page isnt being displayed when the user selects the option. I know the process is working because if I throw a message box in instead of the INSTALLOPTIONS_DISPLAY it works.
How come my custom page call isnt working within the if statement?