Custompage vanishing text problem
I have some problem with my custompage.
The text for the custom page is displayed correctly as the page comes up.
But as I click "install" and a message box pops up, the text just vanishes (the title and subtitle stay) and doesn't show up even after the message box is gone.
Here's the code:
Function Framework
;disable "cancel" button
GetDlgItem $0 $HWNDPARENT 2
EnableWindow $0 0
;set Text
!insertmacro MUI_HEADER_TEXT $(Frame_TITLE) $(Frame_SUBTITLE)
!insertmacro MUI_INSTALLOPTIONS_WRITE "Framework" "Field 2" "Text" $(Field1)
!insertmacro MUI_INSTALLOPTIONS_WRITE "Framework" "Field 5" "Text" $(Field2)
;checks if Framework is installed
ReadRegStr $R0 HKLM "Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" "Install"
${If} $R0 != ""
!insertmacro INSTALLOPTIONS_WRITE "Framework" "Field 2" "Text" "$(FRAME_TEXT)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "Framework"
Messagebox MB_OKCANCEL "$(CANCELUPDATE)" IDOK weiter IDCANCEL abbruch
${Else}
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "Framework"
Messagebox MB_OKCANCEL "$(CANCELFRAME)" IDOK weiter IDCANCEL abbruch
abbruch:
Messagebox MB_OK "$(ABBRUCH)"
quit
${EndIf}
I don't know if this is a bug, or if I'm simply missing something, but I'm grateful for all help.