Archive: Removing finish page causes errors


Removing finish page causes errors
I am trying to replace my finish page with a custom page and to start the process I am first trying to prevent the stock finish page from showing....

ShowInstDetails show
!insertmacro MUI_LANGUAGE English
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "licence.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

;;;;;;;FINISH PAGE SECTION;;;;;;;;;;;;;;;;;
!insertmacro MUI_PAGE_FINISH

;;;;;;;;;;UNINSTALL SECTION;;;;;;;;;;;;;;;;
ShowUninstDetails show
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES


This works fine but if I remove the !insertmacro MUI_PAGE_FINISH to stop showing the finish page then it gives the error below.....

!insertmacro: MUI_UNPAGE_WELCOME - Call must be used with function names starting with "un." in the uninstall section.

Any ideas what is going wrong?

You probably have a left over MUI page callback define for CREATE/SHOW/LEAVE